(routines): Only include gconv_dl if building for
authordrepper <drepper>
Mon, 20 Apr 1998 18:04:23 +0000 (18:04 +0000)
committerdrepper <drepper>
Mon, 20 Apr 1998 18:04:23 +0000 (18:04 +0000)
an ELF system - dynamic linking is not available on a.out.
(CFLAGS-gconv_conf.c): Define STATIC_GCONV if omitting gconv_dl
due to above check.
Don't run tests now.

iconv/Makefile

index 783b1d5..e4cd0fc 100644 (file)
 #
 subdir := iconv
 
+include ../Makeconfig
+
 headers                = iconv.h gconv.h
 routines       = iconv_open iconv iconv_close \
                  gconv_open gconv gconv_close gconv_db gconv_conf \
-                 gconv_dl gconv_builtin gconv_simple
+                 gconv_builtin gconv_simple
+ifeq ($(elf),yes)
+routines       += gconv_dl
+else
+CFLAGS-gconv_db.c = -DSTATIC_GCONV
+endif
+
 distribute     = gconv_builtin.h gconv_int.h
 
 others         = iconv_prog