2012-06-11 11:22:55 +02:00
|
|
|
Index: src/Makefile
|
|
|
|
===================================================================
|
2013-01-31 16:22:24 +01:00
|
|
|
--- src/Makefile.orig 2013-01-30 13:24:55.549631752 +0100
|
|
|
|
+++ src/Makefile 2013-01-30 13:25:56.148209843 +0100
|
|
|
|
@@ -16,8 +16,8 @@ PYINC ?= $(shell pkg-config --cflags $(P
|
2012-07-25 13:46:17 +02:00
|
|
|
PYLIBDIR ?= $(LIBDIR)/$(PYLIBVER)
|
2013-01-31 16:22:24 +01:00
|
|
|
RUBYLIBVER ?= $(shell $(RUBY) -e 'print RUBY_VERSION.split(".")[0..1].join(".")')
|
|
|
|
RUBYPLATFORM ?= $(shell $(RUBY) -e 'print RUBY_PLATFORM')
|
|
|
|
-RUBYINC ?= $(shell pkg-config --cflags ruby)
|
2012-06-04 15:46:09 +02:00
|
|
|
-RUBYINSTALL ?= $(LIBDIR)/ruby/site_ruby/$(RUBYLIBVER)/$(RUBYPLATFORM)
|
|
|
|
+RUBYINC ?= $(shell ruby -r rbconfig -e "print Config::CONFIG['rubyhdrdir'].nil? ? '$(LIBDIR)/ruby/$(RUBYLIBVER)' : Config::CONFIG['rubyhdrdir']")
|
|
|
|
+RUBYINSTALL ?= $(shell ruby -r rbconfig -e "print Config::CONFIG['vendorarchdir'].nil? ? '$(DESTDIR)'+Config::CONFIG['sitearchdir'] : '$(DESTDIR)'+Config::CONFIG['vendorarchdir']")
|
2012-07-25 13:46:17 +02:00
|
|
|
LIBBASE=$(shell basename $(LIBDIR))
|
2012-06-04 15:46:09 +02:00
|
|
|
|
2013-01-31 16:22:24 +01:00
|
|
|
LDFLAGS ?= -lpcre -lpthread
|
|
|
|
@@ -103,7 +103,7 @@ $(SWIGLOBJ): $(SWIGCOUT)
|
|
|
|
$(CC) $(CFLAGS) $(SWIG_CFLAGS) $(PYINC) -fPIC -DSHARED -c -o $@ $<
|
2012-06-04 15:46:09 +02:00
|
|
|
|
|
|
|
$(SWIGRUBYLOBJ): $(SWIGRUBYCOUT)
|
2013-01-31 16:22:24 +01:00
|
|
|
- $(CC) $(CFLAGS) $(SWIG_CFLAGS) $(RUBYINC) -fPIC -DSHARED -c -o $@ $<
|
2012-07-25 13:46:17 +02:00
|
|
|
+ $(CC) $(filter-out -Werror, $(CFLAGS)) -I$(RUBYINC) -I$(RUBYINC)/$(RUBYPLATFORM) -fPIC -DSHARED -c -o $@ $<
|
2012-06-04 15:46:09 +02:00
|
|
|
|
|
|
|
$(SWIGSO): $(SWIGLOBJ)
|
2013-01-31 16:22:24 +01:00
|
|
|
$(CC) $(CFLAGS) -shared -o $@ $< -L. -lselinux $(LDFLAGS) -L$(LIBDIR)
|