[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: pty.h replacement

From: Bruno Haible
Subject: Re: pty.h replacement
Date: Thu, 10 Dec 2009 19:18:20 +0100
User-agent: KMail/1.9.9

Simon Josefsson wrote:
> > Subject: [PATCH] Add pty module for forkpty and openpty.
> I have pushed that patch

I get a link error when building all of gnulib together:

  gcc -std=gnu99  -g -O2  -Wl,--as-needed -o test-pty test-pty.o -lutil -lm  
  test-pty.o: In function `main':
  /home/bruno/data/tmp/testdir2/gltests/test-pty.c:35: undefined reference to 
  /home/bruno/data/tmp/testdir2/gltests/test-pty.c:50: undefined reference to 
  collect2: ld returned 1 exit status
  make[4]: *** [test-pty] Error 1

The reason is that libgnu.a is not being included in the link line. This fixes

2009-12-10  Bruno Haible  <address@hidden>

        pty test: Fix link error.
        * modules/pty-tests (Makefile.am): Add the default LDADD value to

--- modules/pty-tests.orig      2009-12-10 19:12:38.000000000 +0100
+++ modules/pty-tests   2009-12-10 19:12:05.000000000 +0100
@@ -4,4 +4,4 @@
 TESTS += test-pty
 check_PROGRAMS += test-pty
-test_pty_LDADD = $(PTY_LIB)
+test_pty_LDADD = $(LDADD) $(PTY_LIB)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]