diff --git a/build-example.sh b/build-example.sh index 0d212fc5..0fc7ea49 100755 --- a/build-example.sh +++ b/build-example.sh @@ -24,8 +24,8 @@ LDFLAGS=${LDFLAGS:-} # The "-fdata-sections -ffunction-sections -Wl,--gc-sections" produces smaller # binaries. See commit 41fce8a8 "Strip examples of unused data and functions". -CFLAGS=${CFLAGS:--O3 -fdata-sections -ffunction-sections -Wall -Wl,--gc-sections} -CXXFLAGS=${CXXFLAGS:--O3 -fdata-sections -ffunction-sections -Wall -Wl,--gc-sections} +CFLAGS=${CFLAGS:--O3 -fdata-sections -ffunction-sections -Wall -Wl,--gc-sections} +CXXFLAGS=${CXXFLAGS:--O3 -fdata-sections -ffunction-sections -fno-rtti -fno-exceptions -Wall -Wl,--gc-sections} mkdir -p gen/bin