sundown icon indicating copy to clipboard operation
sundown copied to clipboard

unrecognized command line option '-Wl'

Open qas612820704 opened this issue 11 years ago • 3 comments

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

How do I fix it when I make it?

qas612820704 avatar Nov 06 '14 06:11 qas612820704

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

mildsunrise avatar Nov 06 '14 13:11 mildsunrise

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.

zoobab avatar Jun 19 '16 15:06 zoobab

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

Nikaoto avatar Feb 12 '21 14:02 Nikaoto