Skip to content
Snippets Groups Projects
Commit ce140166 authored by jdh8d's avatar jdh8d
Browse files

added -fpic to several modules so they could be linked into a .so

Former-commit-id: caf61d92e2593c742ef5bcdfd29a7fbcd551bad5
parent 4d70f02e
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,7 @@ clean: elfio_clean
rm -f include/config.h
bea:
cd beaengine; cmake .; make all
cd beaengine; cmake -DCMAKE_C_FLAGS=-fPIC .; make all
if [ ! -f lib/libBeaEngine_s_d.a -o ./beaengine/lib/Linux.gnu.Debug/libBeaEngine_s_d.a -nt lib/libBeaEngine_s_d.a ]; then cp ./beaengine/lib/Linux.gnu.Debug/libBeaEngine_s_d.a lib/libBeaEngine_s_d.a; fi
......
......@@ -11,5 +11,5 @@ clean:
rm -f $(OBJS)
.cpp.o:
g++ -g -c -I. -I../../include -I../../../beaengine/include $<
g++ -fPIC -g -c -I. -I../../include -I../../../beaengine/include $<
ar rc $(LIB) $@
......@@ -12,5 +12,5 @@ clean:
rm -f $(OBJS)
.cpp.o:
g++ -g -c -I. -I../../include -I../../../beaengine/include $<
g++ -fPIC -g -c -I. -I../../include -I../../../beaengine/include $<
ar rc $(LIB) $@
......@@ -4,7 +4,7 @@ LIB=../../lib/libIRDB-syscall.a
OBJS=syscall.o
CXX=@CXX@
EXTRA_CXXFLAGS=-g -c -I. -I../../include -I../../../beaengine/include @EXTRA_CXXFLAGS@
EXTRA_CXXFLAGS=-fPIC -g -c -I. -I../../include -I../../../beaengine/include @EXTRA_CXXFLAGS@
all: $(OBJS)
......
......@@ -11,5 +11,5 @@ clean:
rm -f $(OBJS)
.cpp.o:
g++ -g -c -I. -I../../include -I../../../beaengine/include $<
g++ -fPIC -g -c -I. -I../../include -I../../../beaengine/include $<
ar rc $(LIB) $@
......@@ -17,7 +17,7 @@
PROGS=p1transform.exe nulltransform.exe integertransformdriver.exe
CC=g++
CFLAGS= -g -Wall $(TWITCHER_FLAGS) @EXTRA_CXXFLAGS@
CFLAGS= -g -Wall $(TWITCHER_FLAGS) @EXTRA_CXXFLAGS@ -fPIC
INCLUDE=-I. -I../../include -I../../xform -I../../beaengine/include -I../../libIRDB/include/ -I../../libMEDSannotation/include/ -I../../libtransform/include/
LIBS=-L../../lib -lxform -lIRDB-core -lIRDB-cfg -lBeaEngine_s_d -lpqxx -lMEDSannotation -ltransform
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment