X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=natives%2FMakefile;h=b58e400672c0e222c313ab4583d07fb7b872ee46;hp=ea6f14f1caa6d1553b30fd00abf855926fc3b1a6;hb=065ca60170f2471227dc25784e1a4c3b7912d367;hpb=ce2e587000376fffa4c88db087da4d15708eb9b2 diff --git a/natives/Makefile b/natives/Makefile index ea6f14f1..b58e4006 100644 --- a/natives/Makefile +++ b/natives/Makefile @@ -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