From f7a75f17612d82385aeb338035f85016cff53b3d Mon Sep 17 00:00:00 2001 From: Laurent Bigonville Date: Mon, 26 Mar 2012 20:47:46 +0200 Subject: [PATCH] libselinux: Do not link against python library, this is considered bad practice in debian Do not link python module with libpython, the interpreter is already linked against it. Signed-off-by: Laurent Bigonville Signed-off-by: Eric Paris Acked-by: Dan Walsh --- libselinux/src/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libselinux/src/Makefile b/libselinux/src/Makefile index 472ec61a..d84033ea 100644 --- a/libselinux/src/Makefile +++ b/libselinux/src/Makefile @@ -99,7 +99,7 @@ $(SWIGRUBYLOBJ): $(SWIGRUBYCOUT) $(CC) $(filter-out -Werror, $(CFLAGS)) $(RUBYINC) -fPIC -DSHARED -c -o $@ $< $(SWIGSO): $(SWIGLOBJ) - $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lselinux -L$(LIBDIR) $(PYTHONLIBDIR) -Wl,-soname,$@,-z,defs + $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $< -L. -lselinux -L$(LIBDIR) $(PYTHONLIBDIR) $(SWIGRUBYSO): $(SWIGRUBYLOBJ) $(CC) $(CFLAGS) $(LDFLAGS) -shared -o $@ $^ -L. -lselinux -L$(LIBDIR) -Wl,-soname,$@