Skip to content

Instantly share code, notes, and snippets.

@ioquatix
Created June 12, 2016 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ioquatix/3596dca38e4ae4c78e7fd996ed56ebb8 to your computer and use it in GitHub Desktop.
Save ioquatix/3596dca38e4ae4c78e7fd996ed56ebb8 to your computer and use it in GitHub Desktop.
diff --git a/src/libscotch/Makefile b/src/libscotch/Makefile
index 073ac01..64abd50 100644
--- a/src/libscotch/Makefile
+++ b/src/libscotch/Makefile
@@ -2963,7 +2963,7 @@ ptscotchf.h : ptdummysizes$(EXE) \
./ptdummysizes$(EXE) library_pt_f.h ptscotchf.h
libscotch$(LIB) : $(LIBSCOTCHDEPS)
- $(AR) $(ARFLAGS) $(@) $(?)
+ $(AR) $(ARFLAGS) $(@) $(?) $(LDFLAGS)
-$(RANLIB) $(@)
libscotcherr$(LIB) : library_error$(OBJ)
@@ -2975,7 +2975,7 @@ libscotcherrexit$(LIB) : library_error_exit$(OBJ)
-$(RANLIB) $(@)
libptscotch$(LIB) : $(LIBPTSCOTCHDEPS)
- $(AR) $(ARFLAGS) $(@) $(?)
+ $(AR) $(ARFLAGS) $(@) $(?) $(LDFLAGS)
-$(RANLIB) $(@)
libptscotcherr$(LIB) : library_error_pt$(OBJ)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment