common: Assume an utf-8 locale on iconv errors.
[gnupg.git] / am / cmacros.am
index 51f47c3..8bd839c 100644 (file)
@@ -18,6 +18,8 @@
 
 localedir = $(datadir)/locale
 
+# NB: AM_CFLAGS may also be used by tools running on the build
+# platform to create source files.
 AM_CPPFLAGS += -DLOCALEDIR=\"$(localedir)\"
 
 if ! HAVE_DOSISH_SYSTEM
@@ -65,7 +67,15 @@ extra_sys_libs =
 extra_bin_ldflags =
 endif
 
+if HAVE_W32_SYSTEM
+.rc.o:
+       $(WINDRES) $(DEFAULT_INCLUDES) $(INCLUDES) "$<" "$@"
+
+endif
+resource_objs =
 
 # Convenience macros
 libcommon = ../common/libcommon.a
 libcommonpth = ../common/libcommonpth.a
+libcommontls = ../common/libcommontls.a
+libcommontlsnpth = ../common/libcommontlsnpth.a