diff options
author | lioux <lioux@FreeBSD.org> | 2009-04-22 21:37:27 +0800 |
---|---|---|
committer | lioux <lioux@FreeBSD.org> | 2009-04-22 21:37:27 +0800 |
commit | d695bd35fc952c7ac8dd8390608feeed3512ae24 (patch) | |
tree | 3365597325b55f299cd822c9ed33c7d03d433bdc /math | |
parent | 328f7760672ce6ba4469b622d17798c2e83fb84f (diff) | |
download | freebsd-ports-gnome-d695bd35fc952c7ac8dd8390608feeed3512ae24.tar.gz freebsd-ports-gnome-d695bd35fc952c7ac8dd8390608feeed3512ae24.tar.zst freebsd-ports-gnome-d695bd35fc952c7ac8dd8390608feeed3512ae24.zip |
- Add both -fPIC and -DPIC to CFLAGS
- This should fix amd64 ARCH
Submitted by: QAT
Diffstat (limited to 'math')
-rw-r--r-- | math/libjbigi/Makefile | 2 | ||||
-rw-r--r-- | math/libjbigi/files/patch-jbigi__build_jbigi.sh | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/math/libjbigi/Makefile b/math/libjbigi/Makefile index 402cd67d3b50..82b2dafa8d41 100644 --- a/math/libjbigi/Makefile +++ b/math/libjbigi/Makefile @@ -29,7 +29,7 @@ PLIST_FILES= %%JAVAJARDIR%%/jbigi.jar JBIGI_BUILD_ENV= \ CC="${CC}" \ - CFLAGS="${CFLAGS}" \ + CFLAGS="${CFLAGS} -fPIC -DPIC" \ LDFLAGS="${LDFLAGS} -static" \ JAVA_HOME="${JAVA_HOME}" \ LOCALBASE="${LOCALBASE}" diff --git a/math/libjbigi/files/patch-jbigi__build_jbigi.sh b/math/libjbigi/files/patch-jbigi__build_jbigi.sh index 46cddff05cd4..2ccb4d750882 100644 --- a/math/libjbigi/files/patch-jbigi__build_jbigi.sh +++ b/math/libjbigi/files/patch-jbigi__build_jbigi.sh @@ -15,7 +15,7 @@ - COMPILEFLAGS="-fPIC -Wall" - INCLUDES="-I. -I../../jbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/linux" - LINKFLAGS="-shared -Wl,-soname,libjbigi.so" -+ COMPILEFLAGS="-fPIC -Wall ${CFLAGS}" ++ COMPILEFLAGS="-Wall ${CFLAGS}" + INCLUDES="-I. -I${LOCALBASE}/include -Ijbigi/include -I$JAVA_HOME/include -I$JAVA_HOME/include/freebsd" + LINKFLAGS="-shared -Wl,-soname,libjbigi.so ${LDFLAGS}" LIBFILE="libjbigi.so";; |