Skip to content

Instantly share code, notes, and snippets.

@staticfloat
Created September 30, 2012 06:52
Show Gist options
  • Select an option

  • Save staticfloat/3806089 to your computer and use it in GitHub Desktop.

Select an option

Save staticfloat/3806089 to your computer and use it in GitHub Desktop.
julia glpk.h makefile patch
diff --git a/extras/Makefile b/extras/Makefile
index 0c4a0fd..d6edb9f 100644
--- a/extras/Makefile
+++ b/extras/Makefile
@@ -8,7 +8,7 @@ GLPK_VER = 4.47
GLPK_CONST = 0x[0-9a-fA-F]+|[-+]?\s*[0-9]+
ifeq ($(USE_SYSTEM_GLPK), 1)
-GLPK_PREFIX = /usr/include
+GLPK_PREFIX = `brew --prefix`/include
else
GLPK_PREFIX = $(JULIAHOME)/deps/glpk-$(GLPK_VER)/src
endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment