pkgsrc/devel/binutils/override-as.mk
cheusov 046ffb9517 Remove variable GNU_PROGRAM_PREFIX as discussed in pkgsrc-users@, always
use prefix 'g' instead, and add symlinks
with original names in gnu/bin and gnu/man.

++pkgrevision
2012-06-02 11:54:38 +00:00

23 lines
633 B
Makefile

# $NetBSD: override-as.mk,v 1.3 2012/06/02 11:54:38 cheusov Exp $
# This Makefile fragment can be included by packages that wish to
# override the default selection of as(1) and use the one from devel/binutils
# instead.
PKG_AS= ${PREFIX}/bin/gnu/as
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mgcc)
SPECS_AS= ${WRAPPER_DIR}/specs.as
WRAPPER_TARGETS+= ${SPECS_AS}
${SPECS_AS}:
@${ECHO} "*invoke_as:" > ${SPECS_AS}
@${ECHO} "%{!S:-o %|.s |" >> ${SPECS_AS}
@${ECHO} "${PKG_AS} %(asm_options) %m.s %A }" >> ${SPECS_AS}
_WRAP_EXTRA_ARGS.CC+= -specs ${SPECS_AS}
_WRAP_EXTRA_ARGS.CXX+= -specs ${SPECS_AS}
.endif