summaryrefslogtreecommitdiff
path: root/dev-libs/ibpp/files/ibpp-2.3.5.0-CXXFLAGS.patch
blob: 6823ca6929750226b480b3fc5e0b23cc3cf8f703 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
diff -Naur ibpp.orig/Makefile ibpp/Makefile
--- ibpp.orig/Makefile	2004-09-27 14:08:44.000000000 -0400
+++ ibpp/Makefile	2005-09-16 02:44:37.000000000 -0400
@@ -164,20 +164,19 @@
 # building on linux (any flavour, I suppose)
 ifeq ($(PLATFORM),linux)
 	CXXOUTPUT =	-o
-	CXXFLAGS =-DIBPP_LINUX
-	CXXFLAGS+=-DIBPP_GCC
-	CXXFLAGS+=-I./ -I./fbheaders
 	#
 	# change -lfbclient by -lgds if building with Firebird 1.x or InterBase
 	# -lfbclient (or -lgds) is for Firebird 1.5 SS and higher
 	# -lfbembed is for Firebird 1.5 CS and higher
 	#
 	LIBS+=-lfbclient -lcrypt -lm -ldl -lpthread # dependancies for shared library
-	ifeq ($(TARGETDIR),release)
-		CXXFLAGS+= -O3
-	else
-		CXXFLAGS+= -g -DDEBUG -Wall
+	ifeq ($(TARGETDIR),debug)
+		CXXFLAGS=-g -DDEBUG -Wall
 	endif
+	CXXFLAGS+=-fPIC
+	CXXFLAGS+=-DIBPP_LINUX
+	CXXFLAGS+=-DIBPP_GCC
+	CXXFLAGS+=-I./ -I./fbheaders
 	#
 	TARGETS =	$(TARGETDIR)/$(PLATFORM)/libibpp.a \
 				$(TARGETDIR)/$(PLATFORM)/libibpp.so \