Respect CFLAGS

Build Shared Libraries with -fPIC
Remove BROKEN (tested only on amd64)
This commit is contained in:
Tilman Keskinoz 2004-03-29 09:10:20 +00:00
parent 92877d8d08
commit a89b79ef15
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=105596
2 changed files with 1 additions and 5 deletions

View file

@ -32,10 +32,6 @@ MANCOMPRESSED= no
.include <bsd.port.pre.mk>
.if ${ARCH} != "i386"
BROKEN= "does not compile on ${ARCH}"
.endif
.if defined(WITH_PNG)
LIB_DEPENDS+= png:${PORTSDIR}/graphics/png

View file

@ -25,7 +25,7 @@
OS="-DMAV_LINUX -DMAV_FREEBSD" # The Linux defs also work for FreeBSD with a few exceptions
- CFLAG=`echo $OS $OT`
- LD="ld -shared"
+ CFLAG=`echo $OS $OT %%CFLAGS%%`
+ CFLAG=`echo $OS -fPIC %%CFLAGS%%`
+ LD="${CC} -shared %%PTHREAD_LIBS%%"
LEX="flex"
- YACC="bison -y"