diff options
author | tez <tez> | 2011-09-27 15:12:37 +0000 |
---|---|---|
committer | tez <tez> | 2011-09-27 15:12:37 +0000 |
commit | 54bdcf2b6a8774f7763e3f116709c05e851f85ec (patch) | |
tree | bb319fce256c801729ef898c3f8bbf4d924d91fc /devel/libffi | |
parent | 71c9e2f8984915030d0bfff81eb9ea5e3fe9a329 (diff) | |
download | pkgsrc-54bdcf2b6a8774f7763e3f116709c05e851f85ec.tar.gz |
Fix build for Solaris x86 with older gcc per PR#42865
Diffstat (limited to 'devel/libffi')
-rw-r--r-- | devel/libffi/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/devel/libffi/Makefile b/devel/libffi/Makefile index c52c47feaa7..2fa8816fb0f 100644 --- a/devel/libffi/Makefile +++ b/devel/libffi/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.15 2011/04/24 09:51:29 asau Exp $ +# $NetBSD: Makefile,v 1.16 2011/09/27 15:12:37 tez Exp $ # DISTNAME= libffi-3.0.9 @@ -42,4 +42,9 @@ BUILD_DEPENDS+= dejagnu-[0-9]*:../../devel/dejagnu LIBS+= -lm68k .endif +# fix http://gnats.netbsd.org/42865 +.if !empty(MACHINE_PLATFORM:MSunOS-*-i386) && !empty(CC_VERSION:Mgcc-[23]*) +CPPFLAGS += -D__PIC__ +.endif + .include "../../mk/bsd.pkg.mk" |