Add -fPIC to fix build on amd64

Approved by:	osa
This commit is contained in:
Tilman Keskinoz 2003-11-21 16:03:57 +00:00
parent 36502f99cb
commit 5f5fb68ef7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=94662

View file

@ -23,7 +23,7 @@
#CFLAGS = $(TFLAGS) -c -Wall -O5 -g $(DEFS)
-CFLAGS = -c -Wall -O0 -g $(DEFS) $(TFLAGS)
+CFLAGS = -c ${CXXFLAGS} $(DEFS) $(TFLAGS)
+CFLAGS = -c ${CXXFLAGS} $(DEFS) $(TFLAGS) -fPIC
#CFLAGS = -c -Wall -O0 -DFASTDB_DEBUG=DEBUG_TRACE -g $(DEFS) $(TFLAGS)
-SHFLAGS=-shared
+SHFLAGS = -shared -Wl,-soname,$@