[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 01296) libinet6 makefile problems



i have tried compiling libinet6 on my machine but gcc 2.96 has produced
some stupid error saying that -c option cannot be used together with -o
or -S. i have solved with a quick hack to Makefile.in:


+++ Makefile.in Sun Mar 10 23:18:01 2002
@@ -78,7 +78,7 @@

 .SUFFIXES: .o .po
 .c.o:
-       $(CC) $(CFLAGS) -o $@ -c $<
+       $(CC) $(CFLAGS) -c $<
 .c.po:
        $(CC) -pg $(CFLAGS) -o $@ -c $<


you may be interested in fixing this problem once for all. may i suggest
you to uncomment also the lines below:


+++ Makefile.in Sun Mar 10 23:18:01 2002
@@ -93,7 +93,7 @@
        include_glibc22_distclean

 all: includes include_glibc$(usagi_libc) $(LIBS)
-#shared: includes include_glibc$(usagi_libc) $(SLIBS)
+shared: includes include_glibc$(usagi_libc) $(SLIBS)
 includes: include_glibc$(usagi_libc)_includes
        $(MAKE) -C include_glibc$(usagi_libc) includes
        -if [ -d include ]; then        \
@@ -105,9 +105,9 @@
        $(INSTALL_LIBRARY) $(LIBS) $(libdir)
        $(INSTALL_DIR) $(man3dir)
        $(INSTALL_DATA) $(MAN3S) $(man3dir)
-#install-shared: shared include_glibc$(usagi_libc)_install
-#      $(INSTALL_DIR) $(slibdir)
-#      $(INSTALL_LIBRARY) $(SLIBS) $(slibdir)
+install-shared: shared include_glibc$(usagi_libc)_install
+       $(INSTALL_DIR) $(slibdir)
+       $(INSTALL_LIBRARY) $(SLIBS) $(slibdir)
 install-includes: include_glibc$(usagi_libc)_install-includes
 clean: include_glibc21_clean include_glibc22_clean
        -rm -f $(LIBS) $(SLIBS) $(OBJS) $(POBJS) $(LIBOBJS) $(LIBPOBJS)


it would be nice for the users to be able to produce shared libs without
having to patch the makefile.

-- 
Aequam memento rebus in arduis servare mentem...

Mauro Tortonesi			mauro@xxxxxxxxxxxxxxxx
Ferrara Linux User Group	http://www.ferrara.linux.it
Project6 - IPv6 for Linux	http://project6.ferrara.linux.it