Skip to content

Commit

Permalink
Merge pull request #89 from MartinNowak/fixLink
Browse files Browse the repository at this point in the history
grepping for gcc can match other linker error lines
  • Loading branch information
andralex committed Dec 27, 2013
2 parents 77851a7 + 1a8ec07 commit 06441e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion posix.mak
Expand Up @@ -91,7 +91,7 @@ $(ROOT)/dustmite: DustMite/dustmite.d DustMite/dsplit.d
#dreadful custom step because of libcurl dmd linking problem (Bugzilla 7044)
$(CURL_TOOLS): $(ROOT)/%: %.d
$(DMD) -c -of$(@).o $(<)
($(DMD) -v -of$(@) $(@).o 2>&1 | grep gcc | cut -f2- -d' ' ; echo -lcurl ) | xargs $(CC)
($(DMD) -v -of$(@) $(@).o 2>/dev/null | grep '\-Xlinker' | cut -f2- -d' ' ; echo -lcurl ) | xargs $(CC)

$(TOOLS) $(DOC_TOOLS): $(ROOT)/%: %.d
$(DMD) $(MODEL_FLAG) $(DFLAGS) -of$(@) $(<)
Expand Down

0 comments on commit 06441e5

Please sign in to comment.