fix some stupid issue with weak symbols (#56), also minor makefile fixes

This commit is contained in:
Sir Walrus
2024-05-22 18:22:44 +02:00
parent 20b0da9ab9
commit 1bd93237a9
3 changed files with 2 additions and 2 deletions

View File

@@ -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."

View File

@@ -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

View File

@@ -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