X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=natives%2FMakefile;h=3fbf922b64918965c626c480189f48f060c50e14;hp=faf073cd5b28b122db35e7ebf407430354d7a900;hb=929352b2603bd011c48119d8d75a1a00a3889ca8;hpb=b2cd4d4f25d6e40e6675a455c7ed11657e1f7514 diff --git a/natives/Makefile b/natives/Makefile index faf073cd..3fbf922b 100644 --- a/natives/Makefile +++ b/natives/Makefile @@ -1,9 +1,10 @@ +JAVA_HOME=/usr/lib/jvm/default-java SYSTEM= $(shell uname | awk '{print tolower($$0)}') -JAVAH?=javah -CC?=gcc -CFLAGS?=-O3 -g -flto -Wall -Werror -Wextra -pedantic -fsanitize=address -fPIC +JAVAH=javah +CC=gcc +CFLAGS=-O3 -g -flto -Wall -Werror -Wextra -pedantic -fPIC CFLAGS+=-I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/$(SYSTEM) -LDFLAGS?=-shared +LDFLAGS=-shared all: libsetuid.so