Group :: Sistema/Bibliotecas
RPM: libsemanage
Main Changelog Spec Patches Sources Download Gear Bugs e FR Repocop
Patch: alt-linking.patch
Download
Download
--- a/tests/Makefile 2016-11-01 12:32:38.000000000 +0300
+++ b/tests/Makefile 2016-11-01 12:33:48.287000000 +0300
@@ -5,7 +5,7 @@
TESTSRC=../src
# Add the required external object files here:
-LIBS = ../src/libsemanage.a ../../libselinux/src/libselinux.a ../../libsepol/src/libsepol.a
+LIBS = -L../src -Wl,-Bstatic -lsemanage -lselinux -lsepol -Wl,-Bdynamic
###########################################################################
@@ -13,13 +13,13 @@
CC = gcc
CFLAGS += -g -O0 -Wall -W -Wundef -Wmissing-noreturn -Wmissing-format-attribute -Wno-unused-parameter
INCLUDE = -I$(TESTSRC) -I$(TESTSRC)/../include
-LDFLAGS += -lcunit -lustr -lbz2 -laudit
+LDLIBS += -lcunit -lustr -lbz2 -laudit
OBJECTS = $(SOURCES:.c=.o)
all: $(EXECUTABLE)
$(EXECUTABLE): $(OBJECTS)
- $(CC) $(OBJECTS) $(LIBS) $(LDFLAGS) -o $@
+ $(CC) $(OBJECTS) $(LIBS) $(LDFLAGS) -o $@ $(LDLIBS)
%.o: %.c
$(CC) $(CFLAGS) $(INCLUDE) -c $*.c -o $*.o