[PATCH] Make libgcc.a symbols .hidden (fix for non-GNU make)

Loren James Rittle rittle@latour.rsch.comm.mot.com
Wed Feb 27 18:47:00 GMT 2002


>>> The following patch marks all libgcc.a functions [...]

>> FYI, you have used a GNU make feature not present in BSD make.
>> make: don't know how to make libgcc/./%.oS:. Stop

> Would the following work for you?

Thank you for looking at this problem.  I can report that with your
proposed patch it now reports this instead:

make: don't know how to make libgcc/./_muldi3.oS. Stop

Here is the exact line in the built Makefile, $objdir/gcc/libgcc.mk,
that still uses a GNU make feature (with your proposed patch):

libgcc/./%.oS: libgcc/./%.o

I am sorry I wasn't completely clear on what GNU make feature you
introduced, here is the exact quote from the GNU make info file:

   * Pattern rules using `%'.  This has been implemented in several
     versions of `make' [but not the baseline BSD 4.2 make -LJR].
     We're not sure who invented it first, but it's been spread around
     a bit.  *Note Defining and Redefining Pattern Rules: Pattern
     Rules.

I tried a few obvious tricks to convert the above rule to work with
BSD make without success.

Regards,
Loren



More information about the Gcc-patches mailing list