[unixODBC-dev] [PATCH] Fix SunCC _mcount problem

Mladen Turk mturk at redhat.com
Fri Feb 25 14:48:27 GMT 2011


SunCC uses -pt flag to turn on profiling mode
at compile and link time.
Now if -pthread is supplied it will got mistakenly interpreted
with -pt and you'll got an ld: extra '-h' warning

Fix is simple, caused by a typo in configure.in. Test for
if test "x$ac_cv_prog_gcc"="xyes"
will always eval to true cause it misses spaces around '='
so it will add -pthread instead -mt on non-gcc compilers.

Attached a svn diff to trunk.
It can be probably directly applied to all existing branches
as well.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: fix-pthread-flags.diff
URL: <http://mailman.unixodbc.org/pipermail/unixodbc-dev/attachments/20110225/5b4b0a2f/attachment.pl>

More information about the unixODBC-dev mailing list