adding -fPIC for x86_64 support
authormiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 3 Mar 2005 18:48:14 +0000 (18:48 +0000)
committermiker <miker@9efc2488-bf62-4759-914b-345cdb29e865>
Thu, 3 Mar 2005 18:48:14 +0000 (18:48 +0000)
git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@165 9efc2488-bf62-4759-914b-345cdb29e865

src/libjson/Makefile
src/libstack/Makefile
src/libtransport/Makefile

index 651131e..54fde13 100644 (file)
@@ -1,6 +1,6 @@
 # $Id$
 
-CFLAGS         += -g -O2 -Wall -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -I ../../include
+CFLAGS         += -g -O2 -Wall -std=gnu99 -D_GNU_SOURCE -D_REENTRANT -I ../../include -fPIC
 LDFLAGS                += -shared -W1 
 LIB_DIR                = ../../lib
 LDLIBS         += -L . -ljson -L $(LIB_DIR)
index 93b6af0..937c2ee 100644 (file)
@@ -1,5 +1,5 @@
 LIB_DIR = ../../lib
-CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include 
+CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include -fPIC
 LIB_SOURCES = osrf_message.c osrf_app_session.c osrf_stack.c osrf_system.c
 LIB_TARGETS = osrf_message.o osrf_app_session.o osrf_stack.o osrf_system.o
 EXE_LD_OPTS = -L $(LIB_DIR) -lxml2 -lopensrf_transport  -lopensrf_stack -ljson
index 585b336..2c81238 100644 (file)
@@ -3,7 +3,7 @@
 
 CC = gcc
 LIB_DIR=../../lib
-CC_OPTS = -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include #-I /home/erickson/cc/libxml2-2.6.16
+CC_OPTS = -fPIC -Wall -O2 -I /usr/include/libxml2 -I /usr/include/libxml2/libxml -I ../../include #-I /home/erickson/cc/libxml2-2.6.16
 EXE_LD_OPTS = -L $(LIB_DIR) -lxml2 -lopensrf_transport 
 LIB_SOURCES = generic_utils.c transport_socket.c transport_session.c transport_message.c transport_client.c sha.c