Yet another attempt to unbreak TORCS on amd64:

define -fPIC for CXXFLAGS and CFLAGS.
This commit is contained in:
Thierry Thomas 2004-05-30 09:27:26 +00:00
parent d0a222dfaa
commit b786daec14
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=110393

View file

@ -90,15 +90,11 @@ PLIST_SUB+= K1999="@comment "
.include <bsd.port.pre.mk>
.if ${ARCH} == "amd64"
BROKEN= "Does not build on amd64 (needs to link to shared libraries)"
.endif
.if ${OSVERSION} < 500041
CPPFLAGS+= -I${X11BASE}/include -fPIC
.else
CONFIGURE_ENV= CPPFLAGS="-I${X11BASE}/include -I${LOCALBASE}/include -DHAVE_DECL_GETOPT -fPIC" \
LDFLAGS="-L${LOCALBASE}/lib"
LDFLAGS="-L${LOCALBASE}/lib" CXXFLAGS="-fPIC" CFLAGS="-fPIC"
.endif
.if !defined(WITHOUT_FREEGLUT)