File: INSTALL.aix

package info (click to toggle)
gettext 0.23.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 168,104 kB
  • sloc: ansic: 532,579; sh: 68,252; perl: 28,011; makefile: 9,066; lisp: 3,184; yacc: 1,055; java: 615; cs: 589; cpp: 397; objc: 343; sed: 79; tcl: 63; xml: 40; pascal: 11; php: 7; awk: 7
file content (54 lines) | stat: -rw-r--r-- 1,911 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
Installation on AIX:

Here are some hints to get a successful build of GNU gettext on AIX.

* Set the recommended environment variables before running configure:
  https://gitlab.com/ghwiki/gnow-how/-/wikis/Platforms/Configuration

  Namely:
  * for a 32-bit build with gcc:
    CC=gcc
    CXX=g++
    CPPFLAGS="-I$PREFIX/include"
    LDFLAGS="-L$PREFIX/lib"
    unset AR NM
  * for a 32-bit build with xlc:
    CC="xlc -qthreaded -qtls"
    CXX="xlC -qthreaded -qtls"
    CPPFLAGS="-I$PREFIX/include"
    LDFLAGS="-L$PREFIX/lib"
    unset AR NM
  * for a 64-bit build with gcc:
    CC="gcc -maix64"
    CXX="g++ -maix64"
    CPPFLAGS="-I$PREFIX/include"
    LDFLAGS="-L$PREFIX/lib"
    AR="ar -X 64"
    NM="nm -X 64 -B"
  * for a 64-bit build with xlc:
    CC="xlc -q64 -qthreaded -qtls"
    CXX="xlC -q64 -qthreaded -qtls"
    CPPFLAGS="-I$PREFIX/include"
    LDFLAGS="-L$PREFIX/lib"
    AR="ar -X 64"
    NM="nm -X 64 -B"

  where $PREFIX is the value that you pass to the --prefix configure option.

* Avoid using a --prefix that contains earlier installations of the same
  package.

  Rationale: Because the AIX linker hardcodes directory names in shared
  libraries, GNU libtool has a peculiar configuration on AIX. It ends up
  mixing the in-build-tree libraries with the libraries in the install
  locations, leading to all sorts of errors.

  If you really need to use a --prefix that contains an earlier
  installation of the same package, proceed in two steps:
    1. Build GNU gettext with --disable-shared, and install it.
    2. Do a "make distclean".
    3. Build GNU gettext with --enable-shared. "make check" will likely
       fail with hundreds of test failures, because the AIX linker gets
       confused when it find a static libintl installed and expects a
       shared libintl in the same place. Do "make install" regardless.
       Then you can do "make check", and it will succeed.