fix escaping in setuid Makefile
authorFelix Dörre <felix@dogcraft.de>
Fri, 20 Jun 2014 19:24:12 +0000 (21:24 +0200)
committerFelix Dörre <felix@dogcraft.de>
Sat, 21 Jun 2014 14:32:57 +0000 (16:32 +0200)
natives/Makefile

index ea6f14f1caa6d1553b30fd00abf855926fc3b1a6..b58e400672c0e222c313ab4583d07fb7b872ee46 100644 (file)
@@ -1,11 +1,11 @@
-SYSTEM= `uname | awk '{print tolower($0)}'`
+SYSTEM= $(shell uname | awk '{print tolower($$0)}')
 
 
 all: libsetuid.so
 
 libsetuid.so:
        javah -classpath ../bin/ -jni org.cacert.gigi.natives.SetUID    
-       gcc -o libsetuid.so -shared -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(SYSTEM) org_cacert_gigi_natives_SetUID.c
+       gcc -fPIC -o libsetuid.so -shared -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(SYSTEM) org_cacert_gigi_natives_SetUID.c
 
 clean:
        rm -f *.so