Skip to content

Commit faf4ca8

Browse files
committed
Use pkg-config to discover healpix_cxx location
Close #4
1 parent dfa3290 commit faf4ca8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Makefile

Lines changed: 3 additions & 2 deletions
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)