turol / smaaDemo

Subpixel Morphological AntiAliasing OpenGL/Vulkan demo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ld: unrecognized option '--icf=all' in Linux

EoD opened this issue · comments

commented
$ make
g++ -g -Wl,-rpath,. -Wl,-rpath,/usr/local/lib:./lib32 -Wl,--gc-sections,--icf=all  -o smaaDemo-bin demo/smaaDemo.o foreign/glew/src/glew.o     -L/usr/lib64 -lSDL2 -lpthread -lGL
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: unrecognized option '--icf=all'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.9.3/../../../../x86_64-pc-linux-gnu/bin/ld: use the --help option for usage information
collect2: error: ld returned 1 exit status
../module.mk:181: recipe for target 'smaaDemo-bin' failed
make: *** [smaaDemo-bin] Error 1

As far as I know, there is no icf option for either clang or gcc.

It's an option for the linker. -Wl tells the compiler to pass the following option to the linker. This one tells gold linker to do identical code folding. I though normal ld was supposed to ignore it but apparently not. I'll remove it from defaults. Thanks for finding this.