Ticket #38114: libtool_mode.patch

File libtool_mode.patch, 6.6 KB (added by jmroot (Joshua Root), 12 years ago)
  • libhosts_gatherer/Makefile

    old new  
    2222        $(LIBTOOL) --finish $(DESTDIR)${libdir}
    2323       
    2424libhosts_gatherer.la : $(OBJS)
    25         $(LIBTOOL) $(CC) -o libhosts_gatherer.la $(LO_OBJS) -rpath ${libdir} \
     25        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libhosts_gatherer.la $(LO_OBJS) -rpath ${libdir} \
    2626        -version-info ${PACKAGE_VERSION}
    2727               
    2828hg_utils.o : hg_utils.h hosts_gatherer.h hg_utils.c
  • libnessus/Makefile

    old new  
    2222
    2323
    2424getopt.o : getopt.c
    25          $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c getopt.c
     25         $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c getopt.c
    2626
    2727getopt1.o : getopt1.c
    28          $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c getopt1.c
     28         $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c getopt1.c
    2929
    3030plugutils.o : plugutils.c
    31          $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c plugutils.c
     31         $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c plugutils.c
    3232
    3333resolve.o : resolve.c resolve.h
    34         $(LIBTOOL) $(CC)  $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c resolve.c
     34        $(LIBTOOL) --mode=compile $(CC)  $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c resolve.c
    3535
    3636share_fd.o : share_fd.c
    37         $(LIBTOOL) $(CC)  $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c share_fd.c
     37        $(LIBTOOL) --mode=compile $(CC)  $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c share_fd.c
    3838
    3939system.o : system.c system.h
    40         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c system.c
     40        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c system.c
    4141
    4242arglists.o : arglists.c
    43         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c arglists.c
     43        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c arglists.c
    4444
    4545network.o : network.c network.h
    46         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c network.c
     46        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c network.c
    4747
    4848scanners_utils.o : scanners_utils.c scanners_utils.h
    49         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c scanners_utils.c
     49        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c scanners_utils.c
    5050
    5151ftp_funcs.o : ftp_funcs.c ftp_funcs.h
    52         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ftp_funcs.c
     52        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ftp_funcs.c
    5353www_funcs.o : www_funcs.c
    54         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c www_funcs.c
     54        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c www_funcs.c
    5555       
    5656pcap.o : pcap.c
    57         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c pcap.c
     57        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c pcap.c
    5858
    5959hlst.o : hlst.c hlst.h
    60         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c hlst.c
     60        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c hlst.c
    6161
    6262ptycall.o : ptycall.c
    63         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ptycall.c
     63        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ptycall.c
    6464
    6565harglists.o : harglists.c
    66         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c harglists.c
     66        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c harglists.c
    6767
    6868diff.o : diff.c
    69         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c diff.c
     69        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c diff.c
    7070
    7171ids_send.o : ids_send.c
    72         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ids_send.c
     72        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c ids_send.c
    7373
    7474bpf_share.o: bpf_share.c
    75         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c bpf_share.c
     75        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c bpf_share.c
    7676
    7777rand.o: rand.c
    78         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c rand.c
     78        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c rand.c
    7979
    8080popen.o: popen.c
    81         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c popen.c
     81        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c popen.c
    8282
    8383services.o: services.c
    84         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c services.c
     84        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c services.c
    8585
    8686services1.o: services1.c
    87         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -DCONF_DIR=\"$(sysconfdir)\" -c services1.c
     87        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -DCONF_DIR=\"$(sysconfdir)\" -c services1.c
    8888
    8989proctitle.o: proctitle.c
    90         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c proctitle.c
     90        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c proctitle.c
    9191
    9292store.o: store.c
    93         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c store.c
     93        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -DNESSUS_STATE_DIR=\"$(localstatedir)\" -c store.c
    9494       
    9595       
    9696kb.o: kb.c
    97         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c kb.c
     97        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c kb.c
    9898
    9999
    100100snprintf.o : snprintf.c
    101         $(LIBTOOL) $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c snprintf.c   
     101        $(LIBTOOL) --mode=compile $(CC) $(CIPHER) $(DEFS) $(INCLUDE) $(CFLAGS) -c snprintf.c   
    102102libnessus.la: $(OBJS)
    103         $(LIBTOOL) $(CC) -o libnessus.la $(LO_OBJS) -rpath ${libdir} \
     103        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) -o libnessus.la $(LO_OBJS) -rpath ${libdir} \
    104104        -version-info ${PACKAGE_VERSION}
    105105
    106106install : libnessus.la
  • libpcap-nessus/Makefile.in

    old new  
    3131# You shouldn't need to edit anything below.
    3232#
    3333
    34 COMPILE = $(LIBTOOL) $(CC)
     34COMPILE = $(LIBTOOL) --mode=compile $(CC)
    3535CCOPT = @V_CCOPT@
    3636INCLS = -I. @V_INCLS@ -I../../include
    3737### Solaris make does not like += (jordan)
     
    8989
    9090libpcap-nessus.la: $(OBJ)
    9191        @rm -f $@
    92         $(LIBTOOL) $(CC) -o libpcap-nessus.la $(LO_OBJ) -rpath ${libdir} \
     92        $(LIBTOOL) --mode=link $(CC) $(CFLAGS) $(CCOPT) -o libpcap-nessus.la $(LO_OBJ) -rpath ${libdir} \
    9393        -version-info ${PACKAGE_VERSION}
    9494
    9595scanner.c: $(srcdir)/scanner.l