|
From: | Michel Stam |
Subject: | [Bayonne-devel] Small patch to Common C++ 1.3.12 |
Date: | Thu, 30 Jun 2005 14:26:06 +0200 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050317) |
Hello, I was compiling a package of Common C++ 1.3.12 when I noticed that a chmod fails during make install. Reason was the absence of a $(DESTDIR) in src/Makefile.am. I've attached the patch if anyone's interested. the 'reconfig' script should be executed after applying. Secondly, I noticed that the configure script assumes that 'lthread' is the library used for LinuxThreads (--with-linuxthreads). On several Linux distributions I checked, the 'pthread' library is used for LinuxThreads instead. A README file I found in the glibc Slackware 10.1 package (probably copied from the glibc source tree) in /usr/doc/glibc-2.3.4/linuxthreads/, states: USING LINUXTHREADS: gcc -D_REENTRANT ... -lpthread Is this the same on all Linux distributions? It appears to be the case for RedHat 7.2 (glibc 2.2.4), Slackware 7.1.0 (glibc 2.1.3), Slackware 8.0.0 (glibc 2.2.3) and Slackware 10.1 (glibc 2.3.4). In any case building --with-linuxthreads causes the build to fail because liblthread cannot be found. Using --with-pthread=pthread at configure time instead of --with-linuxthreads fixes that problem, btw. Cheers, Michel Stam |
*** src/Makefile.am 2005-06-30 14:24:03.000000000 +0200 --- src/Makefile.am 2005-06-30 14:24:10.000000000 +0200 *************** *** 71,76 **** -rpath $(libdir) ccext2.lo $(LDFLAGS) -lpthread touch macosx install-data-hook: ! chmod +x ${scriptdir}/ccgnu2-config --- 71,76 ---- -rpath $(libdir) ccext2.lo $(LDFLAGS) -lpthread touch macosx install-data-hook: ! chmod +x $(DESTDIR)${scriptdir}/ccgnu2-config
[Prev in Thread] | Current Thread | [Next in Thread] |