Some machines have read-only vtables but this test expects to overwrite them. Use -no_data_const to ensure the vtable is writable
10 lines
253 B
Makefile
10 lines
253 B
Makefile
CXX_SOURCES := main.cpp
|
|
|
|
ifeq "$(OS)" "Darwin"
|
|
# Make vtables writable for test_overwrite_vtable test
|
|
# The -no_data_const flag prevents vtables from being placed in __DATA_CONST
|
|
LD_EXTRAS := -Wl,-no_data_const
|
|
endif
|
|
|
|
include Makefile.rules
|