From: Adam Dickmeiss Date: Thu, 17 Sep 2009 11:58:55 +0000 (+0200) Subject: Use option -fPIC for g++ X-Git-Tag: v1.0~29 X-Git-Url: http://lists.indexdata.dk/?a=commitdiff_plain;h=93a5271812a41c18af6d34148d2e2f217cefc474;p=yaz4j-moved-to-github.git Use option -fPIC for g++ --- 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}