From 54aca00a19625c9d01a7aef0fafee76aa29b64a4 Mon Sep 17 00:00:00 2001 From: miker Date: Thu, 3 Mar 2005 18:48:14 +0000 Subject: [PATCH] adding -fPIC for x86_64 support git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@165 9efc2488-bf62-4759-914b-345cdb29e865 --- src/libjson/Makefile | 2 +- src/libstack/Makefile | 2 +- src/libtransport/Makefile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libjson/Makefile b/src/libjson/Makefile index 651131e..54fde13 100644 --- a/src/libjson/Makefile +++ b/src/libjson/Makefile @@ -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) diff --git a/src/libstack/Makefile b/src/libstack/Makefile index 93b6af0..937c2ee 100644 --- a/src/libstack/Makefile +++ b/src/libstack/Makefile @@ -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 diff --git a/src/libtransport/Makefile b/src/libtransport/Makefile index 585b336..2c81238 100644 --- a/src/libtransport/Makefile +++ b/src/libtransport/Makefile @@ -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 -- 2.11.0