(libchise.la): Specify `-no-undefined' to avoid error on Cygwin
authortomo <tomo>
Fri, 22 Dec 2006 08:33:01 +0000 (08:33 +0000)
committertomo <tomo>
Fri, 22 Dec 2006 08:33:01 +0000 (08:33 +0000)
[suggested by KAMICHI Koichi <kamichi@fonts.jp>].
(chise.lo): Specify `--mode=compile'.
(install.libs): Specify `--mode=install'.

Makefile.in

index 914e78b..c03edf0 100644 (file)
@@ -62,10 +62,11 @@ all:        libchise.la
 libchise.la:   $(OBJS)
        $(LIBTOOL) --mode=link \
                $(CC) -o libchise.la $(OBJS) $(LIBS) \
-               -rpath ${libdir} -version-info $(ABI_VERSION)
+               -rpath ${libdir} -version-info $(ABI_VERSION) \
+               -no-undefined
 
 chise.lo:      chise.c chise.h config.h sysdep.h
-       $(LIBTOOL) $(CC) $(CHISE_CFLAGS) $(CFLAGS) chise.c
+       $(LIBTOOL) --mode=compile $(CC) $(CHISE_CFLAGS) $(CFLAGS) chise.c
 
 
 install:       install.h install.libs
@@ -74,7 +75,7 @@ install.h:
        install -c $(HEADERS) $(INCLUDE_INSTALLDIR)
 
 install.libs:  libchise.la
-       $(LIBTOOL) install -c libchise.la $(LIB_INSTALLDIR)
+       $(LIBTOOL) --mode=install install -c libchise.la $(LIB_INSTALLDIR)
 
 
 sample:        sample.c libchise.la