diff --git a/flips.cpp b/flips.cpp index 7a31420..e649253 100644 --- a/flips.cpp +++ b/flips.cpp @@ -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." diff --git a/make-maintainer.sh b/make-maintainer.sh index 21ee1c7..5a23a5c 100755 --- a/make-maintainer.sh +++ b/make-maintainer.sh @@ -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 diff --git a/make.sh b/make.sh index e5a9671..f06ca99 100755 --- a/make.sh +++ b/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