components/gcc3/Makefile
changeset 991 ed62e375e805
parent 800 2ad056ed89ec
child 1058 34d7aaa03423
equal deleted inserted replaced
990:6bfca1239ccb 991:ed62e375e805
    48 CC_BITS=
    48 CC_BITS=
    49 
    49 
    50 # enabling this causes libstdc++ to break
    50 # enabling this causes libstdc++ to break
    51 LD_B_DIRECT=
    51 LD_B_DIRECT=
    52 
    52 
    53 CONFIGURE_PREFIX =	/usr/sfw
    53 CONFIGURE_PREFIX =	/usr/gcc/3.4
    54 
    54 
    55 # we need to override CONFIGURE_OPTIONS because GCC uses a configure that
    55 # we need to override CONFIGURE_OPTIONS because GCC uses a configure that
    56 # can't deal with CC as an argument
    56 # can't deal with CC as an argument
    57 CONFIGURE_OPTIONS =	 --prefix=$(CONFIGURE_PREFIX)
    57 CONFIGURE_OPTIONS =	 --prefix=$(CONFIGURE_PREFIX)
    58 CONFIGURE_OPTIONS +=	 --mandir=$(CONFIGURE_MANDIR)
    58 CONFIGURE_OPTIONS +=	 --mandir=$(CONFIGURE_MANDIR)
    76 # common targets
    76 # common targets
    77 build:		$(BUILD_32)
    77 build:		$(BUILD_32)
    78 
    78 
    79 $(PROTO_DIR)/.sedded:	$(INSTALL_32)
    79 $(PROTO_DIR)/.sedded:	$(INSTALL_32)
    80 	(cd $(@D) ; for file in libstdc++.la libsupc++.la ; do \
    80 	(cd $(@D) ; for file in libstdc++.la libsupc++.la ; do \
    81 		$(MV) usr/sfw/lib/$$file usr/sfw/lib/$$file.orig ; \
    81 		$(MV) usr/gcc/3.4/lib/$$file usr/gcc/3.4/lib/$$file.orig ; \
    82 		sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/sfw/lib -lgcc_s -lm';" usr/sfw/lib/$$file.orig >usr/sfw/lib/$$file ; \
    82 		sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/gcc/3.4/lib -lgcc_s -lm';" usr/gcc/3.4/lib/$$file.orig >usr/gcc/3.4/lib/$$file ; \
    83 		$(MV) usr/sfw/lib/$(MACH64)/$$file usr/sfw/lib/$(MACH64)/$$file.orig ; \
    83 		$(MV) usr/gcc/3.4/lib/$(MACH64)/$$file usr/gcc/3.4/lib/$(MACH64)/$$file.orig ; \
    84 		sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/sfw/lib/$(MACH64) -lgcc_s -lm';" usr/sfw/lib/$(MACH64)/$$file.orig >usr/sfw/lib/$(MACH64)/$$file ; \
    84 		sed -e "s;\\(dependency_libs=\\).*;\\1' -L/usr/gcc/3.4/lib/$(MACH64) -lgcc_s -lm';" usr/gcc/3.4/lib/$(MACH64)/$$file.orig >usr/gcc/3.4/lib/$(MACH64)/$$file ; \
    85 	 done)
    85 	 done)
    86 	$(TOUCH) $@
    86 	$(TOUCH) $@
    87 
    87 
    88 install:	$(PROTO_DIR)/.sedded
    88 install:	$(PROTO_DIR)/.sedded
    89 
    89