Add missing flag for respecting EXTRA_LIBDIR
authorGabor Pali <pali.gabor@gmail.com>
Sun, 22 Jul 2012 16:59:56 +0000 (16:59 +0000)
committerSimon Marlow <marlowsd@gmail.com>
Wed, 8 Aug 2012 08:10:19 +0000 (09:10 +0100)
rules/build-package-way.mk

index cf89e1e..18ac917 100644 (file)
@@ -76,7 +76,7 @@ else
 $$($1_$2_$3_LIB) : $$($1_$2_$3_ALL_OBJS) $$(ALL_RTS_LIBS) $$($1_$2_$3_DEPS_LIBS)
        $$(call cmd,$1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) $$($1_$2_$3_ALL_OBJS) \
          -shared -dynamic -dynload deploy \
-        $$(addprefix -l,$$($1_$2_EXTRA_LIBRARIES)) \
+        $$(addprefix -l,$$($1_$2_EXTRA_LIBRARIES)) $$(addprefix -L,$$($1_$2_EXTRA_LIBDIRS)) \
             -dylib-install-name $(ghclibdir)/`basename "$$@" | sed 's/^libHS//;s/[-]ghc.*//'`/`basename "$$@"` \
          -no-auto-link-packages \
          -o $$@