* inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
(CFLAGS-gethstbynm_r.c): Likewise.
(CFLAGS-gethstbynm2_r.c): Likewise.
* resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
2003-08-30 Ulrich Drepper <drepper@redhat.com>
+ * inet/Makefile (CFLAGS-gethstbyad_r.c): Add -fexceptions.
+ (CFLAGS-gethstbynm_r.c): Likewise.
+ (CFLAGS-gethstbynm2_r.c): Likewise.
+ * resolv/Makefile (CFLAGS-res_hconf.c): Add -fexceptions.
+
* argp/Makefile (CFLAGS-argp-help.c): Add -fexceptions.
(CFLAGS-argp-fmtstream.c): Likewise.
* argp/argp.h: Remove a number of __THROW.
ifeq ($(have-thread-library),yes)
-CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1
-CFLAGS-gethstbynm_r.c = -DUSE_NSCD=1
-CFLAGS-gethstbynm2_r.c = -DUSE_NSCD=1
+CFLAGS-gethstbyad_r.c = -DUSE_NSCD=1 -fexceptions
+CFLAGS-gethstbynm_r.c = -DUSE_NSCD=1 -fexceptions
+CFLAGS-gethstbynm2_r.c = -DUSE_NSCD=1 -fexceptions
endif
-Dgetnetbyname=res_getnetbyname \
-Dgetnetbyaddr=res_getnetbyaddr
+CFLAGS-res_hconf.c = -fexceptions
+
# The BIND code elicits some harmless warnings.
+cflags += -Wno-strict-prototypes -Wno-write-strings