]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
intl-modula2: Try to fix a build failure on macOS.
authorBruno Haible <bruno@clisp.org>
Mon, 5 May 2025 19:56:30 +0000 (21:56 +0200)
committerBruno Haible <bruno@clisp.org>
Mon, 5 May 2025 19:56:30 +0000 (21:56 +0200)
* gettext-runtime/intl-modula2/Makefile.am (libintl_m2_la_LIBADD): New variable.

gettext-runtime/intl-modula2/Makefile.am

index 0a2592cef06676c128d061bdaaf9a99d7904c1f6..351d82273a00ae13c106d4347425d36cd12711e0 100644 (file)
@@ -65,10 +65,7 @@ LTV_AGE=0
 # - In GCC builds from source, the .la files are present and work.
 # - In distros, either libm2pim.so may work, or m2/m2pim/libm2pim.so, depending
 #   on the distro's packaging.
-libintl_m2_la_LDFLAGS = \
-  -no-undefined \
-  -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
-  -rpath $(libdir) \
+libintl_m2_la_LIBADD = \
   $$(libm2=`$(M2C) -print-file-name=libm2pim.la`; \
      if test "$$libm2" != 'libm2pim.la'; then echo "$$libm2"; else \
        libm2=`$(M2C) -print-file-name=libm2pim.$(M2SHLIBEXT)`; \
@@ -77,6 +74,10 @@ libintl_m2_la_LDFLAGS = \
          if test "$$libm2" != 'm2/m2pim/libm2pim.$(M2SHLIBEXT)'; then echo "$$libm2"; fi; \
        fi; \
      fi)
+libintl_m2_la_LDFLAGS = \
+  -no-undefined \
+  -version-info $(LTV_CURRENT):$(LTV_REVISION):$(LTV_AGE) \
+  -rpath $(libdir)
 
 # Installation of libintl_m2.la.