pkgsrc-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[PATCH] fix p5-gettext on aix for 2015Q4
Building p5-gettext on aix fails. This is because it tries to do a
simple compile test, linking against libintl. By default, aix's
linker prefers .a libraries, but they can't handle interlibrary
dependencies, so the build fails because it also needs to link against
libpthread and libiconv, but doesn't know to do that.
My patch adds -Wl,-brtl to CFLAGS on aix, which tells the linker to
prefer .so libs, and there's no problem linking against libintl.so.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/p5-gettext/Makefile,v
retrieving revision 1.32
diff -u -r1.32 Makefile
--- Makefile 23 Nov 2015 13:29:50 -0000 1.32
+++ Makefile 23 Feb 2016 23:24:57 -0000
@@ -14,6 +14,8 @@
USE_LANGUAGES= c
PERL5_PACKLIST= auto/Locale/gettext/.packlist
+CFLAGS.AIX+= -Wl,-brtl
+
SUBST_CLASSES+= intlpath
SUBST_FILES.intlpath= Makefile.PL
SUBST_SED.intlpath+= -e 's,-lintl,-L${BUILDLINK_PREFIX.gettext}/lib -lintl,g'
Home |
Main Index |
Thread Index |
Old Index