vmg / sundown

Standards compliant, fast, secure markdown processing library in C
2k stars 385 forks source link

build error with gcc 4.8.1 #148

Open galdor opened 11 years ago

galdor commented 11 years ago
gcc: error: unrecognized command line option ‘-Wl’

I guess gcc does not like -Wl with no linker option.

ldegen commented 10 years ago

Straight forward workarround: it seems save to edit the Makefile and just remove the offending -Wl.

I am neither an expert with C in general or the gcc compiler in particular, but from reading http://gcc.gnu.org/onlinedocs/gcc/Link-Options.html it seems that a syntax like -Wl,--some-linker-option is used to pass options to the linker. Only in our case there are no options. Maybe a copy&paste-Error?

dbohdan commented 10 years ago

I ran into this issue today.

I guess gcc does not like -Wl with no linker option.

Yep. Apparently they made it illegal in GCC 4.7. Since the option didn't do anything removing it is harmless.