]> git.ipfire.org Git - thirdparty/libnl.git/commitdiff
Family specific libraries can link to the core directly
authorThomas Graf <tgr@lsx.localdomain>
Thu, 22 May 2008 21:50:01 +0000 (23:50 +0200)
committerThomas Graf <tgr@lsx.localdomain>
Thu, 22 May 2008 21:50:01 +0000 (23:50 +0200)
lib/Makefile

index 8072fb80a67be948ab510778014eac45300e7e48..1dbabfdc7ba9d5cf46d1c5a4ee157e0a4f62834d 100644 (file)
@@ -60,7 +60,7 @@ $(CORE_LIB): $(CORE_LIB).$(PACKAGE_VERSION)
 
 $(ROUTE_LIB).$(PACKAGE_VERSION): $(ROUTE_OBJ)
        @echo "  LD $@"; \
-       $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB)
+       $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB) -lnl
 
 $(ROUTE_LIB): $(ROUTE_LIB).$(PACKAGE_VERSION)
        @echo "  LN $@ -> $<"; \
@@ -68,7 +68,7 @@ $(ROUTE_LIB): $(ROUTE_LIB).$(PACKAGE_VERSION)
 
 $(GENL_LIB).$(PACKAGE_VERSION): $(GENL_OBJ)
        @echo "  LD $@"; \
-       $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB)
+       $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB) -lnl
 
 $(GENL_LIB): $(GENL_LIB).$(PACKAGE_VERSION)
        @echo "  LN $@ -> $<"; \
@@ -76,7 +76,7 @@ $(GENL_LIB): $(GENL_LIB).$(PACKAGE_VERSION)
 
 $(NF_LIB).$(PACKAGE_VERSION): $(NF_OBJ)
        @echo "  LD $@"; \
-       $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB)
+       $(CC) -shared -Wl,-soname=$@ -o $@ $^ $(LIBNL_LIB) -lnl -lnl-route
 
 $(NF_LIB): $(NF_LIB).$(PACKAGE_VERSION)
        @echo "  LN $@ -> $<"; \