fix-underlinking.patch 972 B

123456789101112131415161718192021222324252627
  1. diff -Nuar pyblock-0.53.orig/Makefile pyblock-0.53/Makefile
  2. --- pyblock-0.53.orig/Makefile 2016-03-30 09:41:42.510926755 +0300
  3. +++ pyblock-0.53/Makefile 2016-03-30 09:42:32.328924813 +0300
  4. @@ -5,19 +5,19 @@
  5. DEBUGLIB := "/usr/lib/debug"
  6. CC := gcc
  7. PYVER := $(shell python -c "import sys; print sys.version[0:3]")
  8. -CFLAGS := -g -I/usr/include/python$(PYVER) -Wall -Werror -fPIC $(OPTFLAGS) -fno-strict-aliasing
  9. +CFLAGS := -g -I/usr/include/python$(PYVER) -Wall -fPIC $(OPTFLAGS) -fno-strict-aliasing
  10. LDFLAGS := -shared
  11. VERSION := $(shell awk '/Version:/ { print $$2 }' python-pyblock.spec)
  12. RELEASE := $(shell awk -F '[ %]' '/Release:/ { print $$2 }' python-pyblock.spec)
  13. USESELINUX = 1
  14. -dm_LIBS = dmraid devmapper
  15. +dm_LIBS = devmapper python2.7
  16. ifeq (1, $(USESELINUX))
  17. dm_LIBS += selinux
  18. CFLAGS += -DUSESELINUX=1
  19. endif
  20. -dmraid_LIBS = dmraid devmapper
  21. +dmraid_LIBS = dmraid python2.7
  22. PYFILES=__init__.py maps.py device.py
  23. LIBS = dmmodule.so dmraidmodule.so