]> git.ipfire.org Git - thirdparty/newt.git/commitdiff
don't link modules with libraries already linked with libnewt
authorMiroslav Lichvar <mlichvar@redhat.com>
Thu, 17 Sep 2009 14:52:16 +0000 (16:52 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 17 Sep 2009 14:52:16 +0000 (16:52 +0200)
Makefile.in

index ef6bdd4615d7fa3eca152287dfe6345559b4e83e..f64ffe339bae84a0e6d8d45a02c2d7e8902fab8d 100644 (file)
@@ -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 $@ $^