X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=natives%2FMakefile;h=b58e400672c0e222c313ab4583d07fb7b872ee46;hp=ea6f14f1caa6d1553b30fd00abf855926fc3b1a6;hb=377dad57085f04b03e39fcd726d57eb5849de3d3;hpb=976d382163f174d3f54f05cf6a360c5c51ed16be 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