Browse Source

makefile.am增增加-lPIC

liulei 6 years ago
parent
commit
750a822d9a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      db/Makefile.am

+ 1 - 1
db/Makefile.am

@@ -3,7 +3,7 @@ AUTOMAKE_OPTIONS=foreign
 noinst_LIBRARIES=libyadb.a
 
 
-CXXFLAGS= -g
+CXXFLAGS=-fPIC -g
 AM_CPPFLAGS=-Wall -pthread -m64 -std=c++11  -I${prefix}/include -I/usr/local/mysql/include -I. -I.. -I../websocket/sio
 AM_LDFLAGS =-Wall -pthread -m64 -std=c++11  -L${prefix}/lib  -L/usr/local/mysql/lib