From 9f158fc75a81823f98630bb3108fcd04de9b083d Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 18 Oct 2011 17:27:40 +0000 Subject: link statically with modprobe.so (fix quiet mode for now) --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 79aee5b..78416f2 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ build: $(binaries) $(libraries) lspcidrake: lspcidrake.c libldetect.so $(lib_major).$(LIB_MINOR): $(lib_objs) - $(CC) -shared -Wl,-z,relro -Wl,-O1,-soname,$(lib_major) -o $@ $^ -lpci -lmodprobe -lz + $(CC) -shared -Wl,-z,relro -Wl,-O1,-soname,$(lib_major) -o $@ $^ -lpci -Wl,-Bstatic -lmodprobe -Wl,-Bdynamic -lz $(lib_major): $(lib_major).$(LIB_MINOR) ln -sf $< $@ libldetect.so: $(lib_major) -- cgit v1.2.1