mirror of
https://github.com/Alcaro/Flips.git
synced 2026-09-07 01:56:07 -05:00
fix some stupid issue with weak symbols (#56), also minor makefile fixes
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
void* operator new(size_t n) { return malloc(n); } // forget allocation failures, let them segfault.
|
||||
void operator delete(void * p) { free(p); }
|
||||
void operator delete(void * p, size_t n) { free(p); }
|
||||
extern "C" void __cxa_pure_virtual() { abort(); }
|
||||
|
||||
#if __GNUC__ && (__cpp_rtti || __cpp_exceptions)
|
||||
#warning "Consider building with -fno-exceptions -fno-rtti, to avoid dependencies on libgcc_s_sjlj-1.dll and libstdc++-6.dll."
|
||||
|
||||
@@ -6,6 +6,7 @@ echo " edit this script to satisfy its dependencies);"
|
||||
echo "if you just want a Linux binary, use make.sh instead."
|
||||
|
||||
rm floating.zip
|
||||
rm -r obj/* || true
|
||||
|
||||
# . rather than ./make.sh, so $FLAGS remains set
|
||||
. ./make.sh
|
||||
|
||||
2
make.sh
2
make.sh
@@ -10,7 +10,7 @@ FLAGS=$FLAGS' -ffunction-sections -fdata-sections -Wl,--gc-sections -fprofile-di
|
||||
LINFLAGS=' -Wl,-z,relro,-z,now,--as-needed,--hash-style=gnu,--relax'
|
||||
|
||||
# not a good solution, but imposing Werror on others is rude, and I'm not aware of a better way to detect if it's me
|
||||
if [ "$HOME" = "/home/alcaro" ]; then
|
||||
if [ "$HOME" = "/home/walrus" ]; then
|
||||
FLAGS=$FLAGS" -Werror"
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user