2012-06-11 11:22:55 +02:00
|
|
|
Index: src/Makefile
|
|
|
|
===================================================================
|
2015-05-28 11:05:55 +02:00
|
|
|
--- src/Makefile.orig
|
|
|
|
+++ src/Makefile
|
|
|
|
@@ -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)
|
2015-05-28 11:05:55 +02:00
|
|
|
+RUBYINC ?= $(shell ruby -r rbconfig -e "print RbConfig::CONFIG['rubyhdrdir'].nil? ? '$(LIBDIR)/ruby/$(RUBYLIBVER)' : RbConfig::CONFIG['rubyhdrdir']")
|
|
|
|
+RUBYINSTALL ?= $(shell ruby -r rbconfig -e "print RbConfig::CONFIG['vendorarchdir'].nil? ? '$(DESTDIR)'+RbConfig::CONFIG['sitearchdir'] : '$(DESTDIR)'+RbConfig::CONFIG['vendorarchdir']")
|
2013-11-07 11:18:12 +01:00
|
|
|
LIBBASE ?= $(shell basename $(LIBDIR))
|
2012-06-04 15:46:09 +02:00
|
|
|
|
2013-11-07 11:18:12 +01:00
|
|
|
VERSION = $(shell cat ../VERSION)
|
2015-05-28 11:05:55 +02:00
|
|
|
@@ -98,7 +98,7 @@ $(SWIGLOBJ): $(SWIGCOUT)
|
2013-01-31 16:22:24 +01:00
|
|
|
$(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)
|