vmg / sundown

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

Build error with GCC 4.7.0 #116

Closed craigbarnes closed 11 years ago

craigbarnes commented 12 years ago

When building with GCC 4.7.0 I get the following error:

gcc -g -O3 -Wall -Werror  -shared -Wl src/markdown.o src/stack.o src/buffer.o src/autolink.o html/html.o html/html_smartypants.o html/houdini_html_e.o html/houdini_href_e.o -o libsundown.so.1
gcc: error: unrecognized command line option ‘-Wl’
make: *** [libsundown.so.1] Error 1

Removing the -Wl flag fixes it.

It seems this issue has been documented on the GCC 4.7 porting guide (under the first sub-heading).