From: Jaehun Jeong Date: Thu, 15 Mar 2018 08:09:32 +0000 (+0900) Subject: Add -Wprint-abs-path to generate absolute path for buildwarnings X-Git-Tag: accepted/tizen/unified/20180320.141338^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=06c4c30907004afb917eb3c00856adadbffebfda;p=platform%2Fupstream%2Ftoybox.git Add -Wprint-abs-path to generate absolute path for buildwarnings Change-Id: Ife735f35dacad281c5d291eaad32fd867aa796dd Signed-off-by: Jaehun Jeong --- diff --git a/packaging/toybox.spec b/packaging/toybox.spec index 78a2f24..78bd1ec 100644 --- a/packaging/toybox.spec +++ b/packaging/toybox.spec @@ -69,7 +69,7 @@ ToyBox symlinks for utilities corresponding to 'nslookup' package. cp %{SOURCE1001} . # create dynamic toybox - the executable is toybox cp %{SOURCE1} .config -make -j 4 CC="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -fPIE" LDOPTIMIZE="-Wl,--gc-sections -pie" +make -j 4 CC="gcc $RPM_OPT_FLAGS" CFLAGS="$CFLAGS -Wprint-abs-path -fPIE" LDOPTIMIZE="-Wl,--gc-sections -pie" cp toybox toybox-dynamic %install diff --git a/scripts/make.sh b/scripts/make.sh index 7ebe148..ce27309 100755 --- a/scripts/make.sh +++ b/scripts/make.sh @@ -136,7 +136,7 @@ sed -n \ if [ generated/mkflags -ot scripts/mkflags.c ] then - do_loudly $HOSTCC scripts/mkflags.c -o generated/mkflags || exit 1 + do_loudly $HOSTCC -Wprint-abs-path scripts/mkflags.c -o generated/mkflags || exit 1 fi echo -n "generated/flags.h "