aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2009-04-22 13:37:27 +0000
committerMario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>2009-04-22 13:37:27 +0000
commit3aff97d09858f37a2b441923a749a49cbd99faff (patch)
tree2e0ef7b2d53a1cc524a2f415f5250980a5f418bd /math
parent918f702015440b4f7810da3da893deb9136478ca (diff)
- Add both -fPIC and -DPIC to CFLAGS
- This should fix amd64 ARCH Submitted by: QAT
Notes
Notes: svn path=/head/; revision=232508
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";;