Fixed stack smashing errors

This commit is contained in:
K D Hedger
2023-07-20 12:03:08 +01:00
parent 4ed04d19b1
commit 8e9bc0edbb
10 changed files with 80 additions and 44 deletions

View File

@ -14,7 +14,7 @@ fi
APPNAME=$(basename $0 .cpp)
cd "$(dirname "$0")"
g++ "$0" -O0 -ggdb -I../LFSToolKit -L../LFSToolKit/app/.libs $(pkg-config --cflags --libs x11 xft cairo ) -llfstoolkit -lImlib2 -o $APPNAME||exit 1
g++ -Wstack-protector -Werror -fstack-protector "$0" -O0 -ggdb -I../LFSToolKit -L../LFSToolKit/app/.libs $(pkg-config --cflags --libs x11 xft cairo ) -llfstoolkit -lImlib2 -Wstack-protector -Werror -fstack-protector -o $APPNAME||exit 1
LD_LIBRARY_PATH=../LFSToolKit/app/.libs $USEVALGRIND ./$APPNAME "$@"
retval=$?
rm $APPNAME