From 377dad57085f04b03e39fcd726d57eb5849de3d3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Felix=20D=C3=B6rre?= Date: Fri, 20 Jun 2014 21:24:12 +0200 Subject: [PATCH] fix escaping in setuid Makefile --- natives/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.2