]> oss.titaniummirror.com Git - tinyos-2.x.git/blobdiff - tools/tinyos/java/serial/Makefile.am
add -fPIC, needed for x86_64 according to
[tinyos-2.x.git] / tools / tinyos / java / serial / Makefile.am
index e71be367a422b37d8fb5c72b7b107ea87c3eac25..7909a9e8c015ac6171cef255679f25ba135867ab 100644 (file)
@@ -19,7 +19,7 @@ toscomm_dll_SOURCES = \
   TOSComm_wrap.cxx
 
 libtoscomm.so: $(libtoscomm_so_SOURCES)
-       $(CXX) -O2 -shared "-I$(JDK)/include" "-I$(JDK)/include/linux" \
+       $(CXX) -O2 -shared -fPIC "-I$(JDK)/include" "-I$(JDK)/include/linux" \
          -o $@ NativeSerial_linux.cpp
 
 toscomm.dll: $(toscomm_dll_SOURCES)