## Makefile for the gettext-runtime/intl and gettext-tools/intl subdirectories
## of GNU gettext.
-## Copyright (C) 1995-1998, 2000-2007, 2009-2021 Free Software Foundation, Inc.
+## Copyright (C) 1995-1998, 2000-2007, 2009-2022 Free Software Foundation, Inc.
##
## This program is free software: you can redistribute it and/or modify
## it under the terms of the GNU Lesser General Public License as published by
AM_LDFLAGS = -Wl,--export-all-symbols
endif
+# Support building libintl.a with -fPIC (needed by GCC).
+AM_CFLAGS += @PICFLAG@
+
# Library include file and code.
dnl Configuration for the gettext-runtime directory of GNU gettext
-dnl Copyright (C) 1995-2016, 2018-2021 Free Software Foundation, Inc.
+dnl Copyright (C) 1995-2016, 2018-2022 Free Software Foundation, Inc.
dnl
dnl This program is free software: you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
esac
AM_CONDITIONAL([WINDOWS_NATIVE], [test $is_windows_native = yes])
+dnl Support building libintl.a with -fPIC (needed by GCC).
+dnl <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100096>
+AC_ARG_ENABLE([host-shared],
+ [AS_HELP_STRING([--enable-host-shared], [special hack for GCC])],
+ [PICFLAG='-fPIC'],
+ [PICFLAG=])
+AC_SUBST([PICFLAG])
+
dnl Checks for libraries.
dnl These are the only lines required to internationalize the package.