mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Respect CFLAGS
Build Shared Libraries with -fPIC Remove BROKEN (tested only on amd64)
This commit is contained in:
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
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Add table
Reference in a new issue