Skip to content

Commit

Permalink
Add pkg-config libgmp detection to Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
tsutsu committed Nov 5, 2024
1 parent bd3bcd7 commit 352f0e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ DATA = $(INSTALLSCRIPT) $(UPGRADESCRIPT)
REGRESS = --inputdir=test setup mpz mpq
EXTRA_CLEAN = $(INSTALLSCRIPT) $(UPGRADESCRIPT)

PG_CFLAGS = -I/usr/local/include
PG_LDFLAGS = -L/usr/local/lib
PG_CFLAGS += -I/usr/local/include $(shell pkg-config --cflags gmp)
PG_LDFLAGS += -L/usr/local/lib $(shell pkg-config --libs gmp)

USE_PGXS=1
PGXS := $(shell $(PG_CONFIG) --pgxs)
Expand Down

0 comments on commit 352f0e0

Please sign in to comment.