Skip to content

Commit 3a7f241

Browse files
authored
Merge pull request #5 from credativ/healpix-pkg-config
Use pkg-config to discover healpix_cxx location
2 parents dfa3290 + faf4ca8 commit 3a7f241

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

+3-2
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,9 @@ else
6464
endif
6565

6666
# compiler settings
67-
override CPPFLAGS += -I/usr/include/healpix_cxx
68-
SHLIB_LINK += -lhealpix_cxx
67+
PKG_CONFIG = pkg-config
68+
override CPPFLAGS += $(shell $(PKG_CONFIG) --cflags healpix_cxx)
69+
SHLIB_LINK += $(shell $(PKG_CONFIG) --libs healpix_cxx)
6970
LINK.shared = g++ -shared
7071

7172
# healpix_bare.c isn't ours so we refrain from fixing the warnings in there

0 commit comments

Comments
 (0)