Use LDFLAGS when building libutf8proc.dylib (#125)
authorRyan Schmidt <ryandesign@macports.org>
Wed, 18 Apr 2018 14:50:15 +0000 (09:50 -0500)
committerAlex Arslan <ararslan@comcast.net>
Wed, 18 Apr 2018 14:50:15 +0000 (07:50 -0700)
Makefile

index e6459c3241d1e33569bc216f330c956ccbca218c..b3bb570e2ff55968a95c1b71fc8bfc6abfb821eb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -81,7 +81,7 @@ libutf8proc.so: libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH)
        ln -f -s libutf8proc.so.$(MAJOR).$(MINOR).$(PATCH) $@.$(MAJOR)
 
 libutf8proc.$(MAJOR).dylib: utf8proc.o
-       $(CC) -dynamiclib -o $@ $^ -install_name $(libdir)/$@ -Wl,-compatibility_version -Wl,$(MAJOR) -Wl,-current_version -Wl,$(MAJOR).$(MINOR).$(PATCH)
+       $(CC) $(LDFLAGS) -dynamiclib -o $@ $^ -install_name $(libdir)/$@ -Wl,-compatibility_version -Wl,$(MAJOR) -Wl,-current_version -Wl,$(MAJOR).$(MINOR).$(PATCH)
 
 libutf8proc.dylib: libutf8proc.$(MAJOR).dylib
        ln -f -s libutf8proc.$(MAJOR).dylib $@