From 7d9135f4e3fbbd3547ec9b68c5808655fe3da138 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Thu, 17 Sep 2009 16:52:16 +0200 Subject: [PATCH] don't link modules with libraries already linked with libnewt --- Makefile.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile.in b/Makefile.in index ef6bdd4..f64ffe3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -71,7 +71,7 @@ _snackmodule.so: snackmodule.c $(LIBNEWTSH) for ver in $(PYTHONVERS) ; do \ mkdir -p $$ver ;\ $(CC) $(CFLAGS) -I/usr/include/$$ver $(SHCFLAGS) -c -o $$ver/snackmodule.o snackmodule.c ;\ - $(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L . -lnewt -lslang ;\ + $(CC) --shared $(SHCFLAGS) -o $$ver/_snackmodule.so $$ver/snackmodule.o -L . -lnewt ;\ done touch $@ @@ -79,7 +79,7 @@ whiptail: $(NDIALOGOBJS) $(LIBNEWTSH) $(CC) -g -o whiptail $(NDIALOGOBJS) -L . -lnewt $(LIBS) -lpopt whiptcl.so: $(WHIPTCLOBJS) $(LIBNEWTSH) - $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lslang -lpopt -lm + $(CC) -shared $(SHCFLAGS) -o whiptcl.so $(WHIPTCLOBJS) -L . -lnewt $(LIBTCL) -lpopt $(LIBNEWT): $(LIBOBJS) ar rv $@ $^ -- 2.47.2