components/stdcxx/isa_patches/i386/1037-GNUmakefile.lib.i386.patch
changeset 402 94ae4d75524c
equal deleted inserted replaced
401:bf52ef48020c 402:94ae4d75524c
       
     1 --- stdcxx-4.2.1/etc/config/GNUmakefile.lib	2008-04-24 20:25:50.000000000 -0400
       
     2 +++ stdcxx-4.2.1/etc/config/GNUmakefile.lib	2009-03-30 11:15:47.741351000 -0400
       
     3 @@ -26,6 +26,16 @@
       
     4  #
       
     5  ########################################################################
       
     6  
       
     7 +arch := $(shell mach)
       
     8 +
       
     9 +ifeq ($(arch),sparc)
       
    10 +      XREGS := -xregs=no%appl
       
    11 +      XMEMALIGN := -xmemalign=8s
       
    12 +else
       
    13 +      XREGS := -xregs=no%frameptr
       
    14 +      XMEMALIGN :=
       
    15 +endif
       
    16 +
       
    17  include ../makefile.in
       
    18  
       
    19  
       
    20 @@ -112,6 +122,8 @@
       
    21  $(LIBLINK): $(LIB)
       
    22  	@echo "ln -sf $< $@" >> $(LOGFILE)
       
    23  	ln -sf $< $@
       
    24 +	@echo "ln -sf $< $(LIBSONAME)" >> $(LOGFILE)
       
    25 +	ln -sf $< $(LIBSONAME)
       
    26  
       
    27  else
       
    28  
       
    29 @@ -138,6 +150,7 @@
       
    30  	if [ $(LIBLINK) != $(LIB) ]; then          \
       
    31              rm $(PREFIX)/lib/$(LIBLINK);           \
       
    32              ln -s $(LIB) $(PREFIX)/lib/$(LIBLINK); \
       
    33 +            ln -s $(LIB) $(PREFIX)/lib/$(LIBSONAME); \
       
    34          fi
       
    35  	mkdir -p $(PREFIX)/etc
       
    36  	cp $(CATFILE) $(PREFIX)/etc