diff mbox

[build] Link genmatch with $(LIBINTL)

Message ID CAGWvnykppNzBdXVYR_9fDjZnc=Mv7Vp-GdRrQchQ7PMNbC-Yrg@mail.gmail.com
State New
Headers show

Commit Message

David Edelsohn Oct. 22, 2014, 5:13 p.m. UTC
I reported the same problem in a separate thread.

On AIX it needs LIBINTL and LIBICONV.



Thanks, David

Comments

Richard Biener Oct. 22, 2014, 5:31 p.m. UTC | #1
On October 22, 2014 7:13:41 PM CEST, David Edelsohn <dje.gcc@gmail.com> wrote:
>I reported the same problem in a separate thread.
>
>On AIX it needs LIBINTL and LIBICONV.

I wonder what ends up linking those with Linux? Or is all the features available from glibc?

Fixed patch is OK.

Thanks,
Richard.

>Index: Makefile.in
>===================================================================
>--- Makefile.in (revision 216542)
>+++ Makefile.in (working copy)
>@@ -2520,7 +2520,7 @@
># These programs need libs over and above what they get from the above
>list.
> build/genautomata$(build_exeext) : BUILD_LIBS += -lm
>
>-build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) \
>+build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) $(LIBINTL)
>$(LIBICONV) \
>   $(BUILD_ERRORS) build/vec.o build/hash-table.o
>
> # These programs are not linked with the MD reader.
>
>
>Thanks, David
David Edelsohn Oct. 22, 2014, 6:58 p.m. UTC | #2
On Wed, Oct 22, 2014 at 1:31 PM, Richard Biener <rguenther@suse.de> wrote:
> On October 22, 2014 7:13:41 PM CEST, David Edelsohn <dje.gcc@gmail.com> wrote:
>>I reported the same problem in a separate thread.
>>
>>On AIX it needs LIBINTL and LIBICONV.
>
> I wonder what ends up linking those with Linux? Or is all the features available from glibc?

The dependency comes from libcpp.

Thanks, David
diff mbox

Patch

Index: Makefile.in
===================================================================
--- Makefile.in (revision 216542)
+++ Makefile.in (working copy)
@@ -2520,7 +2520,7 @@ 
 # These programs need libs over and above what they get from the above list.
 build/genautomata$(build_exeext) : BUILD_LIBS += -lm

-build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) \
+build/genmatch$(build_exeext) : $(CPPLIB) $(LIBIBERTY) $(LIBINTL) $(LIBICONV) \
   $(BUILD_ERRORS) build/vec.o build/hash-table.o

 # These programs are not linked with the MD reader.