From 93a5271812a41c18af6d34148d2e2f217cefc474 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Thu, 17 Sep 2009 13:58:55 +0200 Subject: [PATCH] Use option -fPIC for g++ --- libyaz4j/build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libyaz4j/build.sh b/libyaz4j/build.sh index 36e379a..d326fda 100755 --- a/libyaz4j/build.sh +++ b/libyaz4j/build.sh @@ -8,9 +8,9 @@ YAZ_LIBS=`${YAZ_CONFIG} --libs` swig -I"include" -I"${YAZ_PREFIX}/include" -outdir ../src/org/yaz4j/jni -package org.yaz4j.jni -o src/libyaz4j.cpp -c++ -java libyaz4j.i -g++ -I"include" -I"$JNI_DIR" -I"$JNI_DIR/linux" ${YAZ_CFLAGS} -c -Wall -o obj/libyaz4j.o src/libyaz4j.cpp +g++ -fPIC -I"include" -I"$JNI_DIR" -I"$JNI_DIR/linux" ${YAZ_CFLAGS} -c -Wall -o obj/libyaz4j.o src/libyaz4j.cpp -g++ -I"include" -I"$JNI_DIR" -I"$JNI_DIR/linux" ${YAZ_CFLAGS} -c -Wall -o obj/zoom-extra.o src/zoom-extra.cpp +g++ -fPIC -I"include" -I"$JNI_DIR" -I"$JNI_DIR/linux" ${YAZ_CFLAGS} -c -Wall -o obj/zoom-extra.o src/zoom-extra.cpp g++ -shared obj/libyaz4j.o obj/zoom-extra.o -o lib/libyaz4j.so ${YAZ_LIBS} -- 1.7.10.4