aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authorlioux <lioux@FreeBSD.org>2009-04-22 21:37:27 +0800
committerlioux <lioux@FreeBSD.org>2009-04-22 21:37:27 +0800
commitd695bd35fc952c7ac8dd8390608feeed3512ae24 (patch)
tree3365597325b55f299cd822c9ed33c7d03d433bdc /math
parent328f7760672ce6ba4469b622d17798c2e83fb84f (diff)
downloadfreebsd-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/Makefile2
-rw-r--r--math/libjbigi/files/patch-jbigi__build_jbigi.sh2
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";;