about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-04-24 20:10:15 +0000
committerEric Wong <normalperson@yhbt.net>2013-04-29 21:01:01 +0000
commitb57b0fa2bda6c755d366df0dc0579e244fb167a8 (patch)
treea5349f081bdd0f385f62e425ef58e33c88b6520d
parent07871a12535da6cd58abf58f8a3f8dca3dffbb6e (diff)
downloadsleepy_penguin-b57b0fa2bda6c755d366df0dc0579e244fb167a8.tar.gz
This allows us to use something like:

  make build EXTCONF_ARGS='--with-kqueue-include=/usr/include/kqueue \
                           --with-kqueue-libs=-lkqueue'

To build with libkqueue.
-rw-r--r--pkg.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg.mk b/pkg.mk
index 4cd5bef..048d3d8 100644
--- a/pkg.mk
+++ b/pkg.mk
@@ -36,7 +36,7 @@ $(ext_pfx)/$(ext)/%: $(ext)/% $(ext_d)
         install -m 644 $< $@
 $(ext_pfx)/$(ext)/Makefile: $(ext)/extconf.rb $(ext_d) $(ext_h)
         $(RM) -f $(@D)/*.o
-        cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb
+        cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb $(EXTCONF_ARGS)
 ext_sfx := _ext.$(DLEXT)
 ext_dl := $(ext_pfx)/$(ext)/$(notdir $(ext)_ext.$(DLEXT))
 $(ext_dl): $(ext_src) $(ext_pfx_src) $(ext_pfx)/$(ext)/Makefile