use pkg-config
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 2 Jan 2006 23:07:14 +0000 (23:07 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 2 Jan 2006 23:07:14 +0000 (23:07 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/fuse/perl-llin@29 6e4b0b00-1209-0410-87b2-b275959b5705

Makefile.PL

index 78bee8a..b6ca8ea 100644 (file)
@@ -11,7 +11,7 @@ WriteMakefile(
     'LIBS'             => [''], # e.g., '-lm'
     'DEFINE'           => '-g -ggdb', # e.g., '-DHAVE_SOMETHING'
        # Insert -I. if you add *.h files later:
-    'INC'              => '-I../include', # e.g., '-I/usr/include/other'
+    'INC'              => `pkg-config --cflags` . '-I ../include', # e.g., '-I/usr/include/other'
        # Un-comment this if you add C files to link with later:
-    'OBJECT'           => 'Fuse.o -lfuse -lpthread', # link all the C files too
+    'OBJECT'           => `pkg-config --libs fuse` . ' Fuse.o -lpthread', # link all the C files too
 );