Closed tomlankhorst closed 7 years ago
When building an FMU on Mac OS, strip is not able to remove some symbols resulting in an error:
strip
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip: symbols referenced by indirect symbol table entries that can't be stripped in: /Users/tomlankhorst/20sim/pid/fmu/project/gcc/controller.so _malloc _strcpy _strlen _strncpy _strtol dyld_stub_binder __DefaultRuneLocale make: *** [dll] Error 1
This is fixed by adding the -x option to strip in the Makefile to only remove local symbols.
-x
Makefile
Alternatively, using GCC's gstrip works as well.
gstrip
When building an FMU on Mac OS,
strip
is not able to remove some symbols resulting in an error:This is fixed by adding the
-x
option tostrip
in theMakefile
to only remove local symbols.Alternatively, using GCC's
gstrip
works as well.