vmg / sundown

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

unrecognized command line option '-Wl' #154

Open qas612820704 opened 9 years ago

qas612820704 commented 9 years ago

$ gcc --version gcc (Debian 4.9.1-19) 4.9.1 ...

How do I fix it when I make it?

mildsunrise commented 9 years ago

Sundown was deprecated / frozen a while ago, you should use a fork like Hoedown instead.

zoobab commented 8 years ago

Even though Sundown might be deprecated, that it is not a satisfactory answer to the question on why it does not compile with GCC 4.9.

Nikaoto commented 3 years ago

Put a comma after it in the Makefile:

@@ -44,7 +44,7 @@ libsundown.so:    libsundown.so.1
    ln -f -s $^ $@

 libsundown.so.1: $(SUNDOWN_SRC)
-   $(CC) $(LDFLAGS) -shared -Wl $^ -o $@
+   $(CC) $(LDFLAGS) -shared -Wl,$^ -o $@

 # executables