[Tinyos-help] BUG: tinyos-2 libtoscomm.so needs -fPIC flag (w/patch)
Daniel Goertzen
daniel.goertzen at norscan.com
Tue Jan 9 12:46:24 PST 2007
libtoscomm.so is a shared library but is not built with the -fPIC flag. I
assume that some systems are forgiving of this, but gentoo x86_64 with
gcc-4.1.1 is not.
Cheers,
Dan.
===================================================================
RCS file: /cvsroot/tinyos/tinyos-2.x/tools/tinyos/java/serial/Makefile.am,v
retrieving revision 1.2
diff -u -r1.2 Makefile.am
--- tinyos/java/serial/Makefile.am 12 Jul 2006 17:00:46 -0000 1.2
+++ tinyos/java/serial/Makefile.am 9 Jan 2007 20:40:15 -0000
@@ -19,7 +19,7 @@
TOSComm_wrap.cxx
libtoscomm.so: $(libtoscomm_so_SOURCES)
- $(CXX) -O2 -shared "-I$(JDK)/include" "-I$(JDK)/include/linux" \
+ $(CXX) -fPIC -O2 -shared "-I$(JDK)/include" "-I$(JDK)/include/linux"
\
-o $@ NativeSerial_linux.cpp
toscomm.dll: $(toscomm_dll_SOURCES)
More information about the Tinyos-help
mailing list