Small patch to Common C++ 1.3.12

Michel Stam <[email protected]>
Newsgroups gmane.comp.gnu.bayonne.devel
Message-ID <[email protected]>
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

_______________________________________________
Bayonne-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bayonne-devel
commoncpp2.build.diff (text/plain, 436 B)
*** 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.