[patch/libdecnumber] Fix to compile with Solaris make

Thiago Jung Bauermann bauerman@br.ibm.com
Wed Nov 7 20:20:00 GMT 2007


Hi folks,

My previous patch to the libdecnumber build system enabled libdecnumber
to be built by native make on *BSD, but Solaris' make still doens't
work.

The problem is that in that version of make, the $< automatic variable
is not set for targets that have an explicit compilation rule instead of
using the .c.o default rule.

This patch substitutes the $< variable for the explicit name of the
source file which should be compiled in those targets that define a
compilation rule.

It also prepends $(srcdir) to the path of files that reside in a
subdirectory of the libdecnumber source tree, for completeness.

I tested by compiling libdecnumber on Solaris, Linux and OpenBSD.

Is this ok?
-- 
[]'s
Thiago Jung Bauermann
Software Engineer
IBM Linux Technology Center
-------------- next part --------------
A non-text attachment was scrubbed...
Name: fix-solaris-build.diff
Type: text/x-patch
Size: 3000 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20071107/df98f6ac/attachment.bin>


More information about the Gdb-patches mailing list