pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
making gnupg work on AIX
Two issues with gnupg on AIX:
o We must configure with --disable-asm (have patch).
o We must build WITHOUT `-On' in CFLAGS. (-O1 might work).
The latter causes a runtime error where decryption doesn't work.
To get gnupg to build on AIX I needed to patch the Makefile like this...
--- security/gnupg/Makefile.orig 2009-09-25 12:46:05.000000000 -0400
+++ security/gnupg/Makefile 2009-09-25 12:46:51.000000000 -0400
@@ -39,6 +39,10 @@
CONFIGURE_ARGS+= --disable-asm
.endif
+.if ${OPSYS} == "AIX" && defined(ABI) && ${ABI} == 64
+CONFIGURE_ARGS+= --disable-asm
+.endif
+
# XXX: still needed?
.if ${OPSYS} == "FreeBSD"
SUBST_CLASSES+= fixme
... otherwise the build fails like this...
Assembler:
_mpih-mul1.s: line 8: Only .llong should be used for relocatable
expressions.
_mpih-mul1.s: line 8: Only .llong should be used for relocatable
expressions.
gmake[2]: *** [mpih-mul1.o] Error 1
gmake[2]: Leaving directory
`/usr/pkgobj/security/gnupg/work/gnupg-1.4.10/mpi'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/pkgobj/security/gnupg/work/gnupg-1.4.10'
gmake: *** [all] Error 2
*** Error code 2
... Can we get this into pkgsrc-2009Q3?
The next issue is that the runtime gpg must be built without
optimization. So `-O3' and `-O2' cannot be in CFLAGS (haven't tested
with `-O1').
This is cumbersome as I have to manually build gnupg with special CFLAGS
each time. I have -O3 set in CFLAGS in mk.conf. Is it possible to
override this at build time with some setting in the Makefile? Like a
substitution?
Louis
Home |
Main Index |
Thread Index |
Old Index