pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: GCC and as



Hi folks.

This took some effort to come up with, it's hard-coded for demonstration
purposes, but it allowed me to have an intentionally-broken /usr/bin/ld
(I've replaced it with a shell script to see if it worked).

Index: cwrappers.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/cwrappers.mk,v
retrieving revision 1.30
diff -u -r1.30 cwrappers.mk
--- cwrappers.mk	8 Nov 2017 03:52:50 -0000	1.30
+++ cwrappers.mk	1 Jun 2018 08:07:53 -0000
@@ -37,13 +37,13 @@
 CWRAPPERS_ALIASES.libtool=	libtool
 CWRAPPERS_ALIASES.shlibtool=	shlibtool
 
-CWRAPPERS_WRAPPEE.as=		${AS:Ufalse}
+CWRAPPERS_WRAPPEE.as=		/usr/pkg/x86_64--netbsd/bin/as#${AS:Ufalse}
 CWRAPPERS_WRAPPEE.cxx=		${PKG_CXX:Ufalse}
 CWRAPPERS_WRAPPEE.cc=		${PKG_CC:Ufalse}
 CWRAPPERS_WRAPPEE.cpp=		${PKG_CPP:Ufalse}
 CWRAPPERS_WRAPPEE.f77=		${PKG_FC:Ufalse}
 CWRAPPERS_WRAPPEE.imake=	${TOOLS_PATH.imake:Ufalse}
-CWRAPPERS_WRAPPEE.ld=		${LD:Ufalse}
+CWRAPPERS_WRAPPEE.ld=		/usr/pkg/x86_64--netbsd/bin/ld#${LD:Ufalse}
 CWRAPPERS_WRAPPEE.libtool=	${PKG_LIBTOOL:Ufalse}
 CWRAPPERS_WRAPPEE.shlibtool=	${PKG_SHLIBTOOL:Ufalse}
 
@@ -67,7 +67,7 @@
 .for wrappee in as cxx cc cpp f77 imake ld libtool shlibtool
 	${RUN}echo worklog=${WRKLOG:Q} > ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}}
 	${RUN}echo wrksrc=${WRKSRC:Q} >> ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}}
-	${RUN}case ${wrappee} in *libtool) ;; *) echo path=${_PATH_COMPONENTS:N${WRAPPER_BINDIR}:ts::Q} >> ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}};; esac
+	#${RUN}case ${wrappee} in *libtool) ;; *) echo path=${_PATH_COMPONENTS:N${WRAPPER_BINDIR}:ts::Q} >> ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}};; esac
 	${RUN}echo exec_path=${WRAPPER_BINDIR}/${CWRAPPERS_ALIASES.${wrappee}:[1]} >> ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}}
 	${RUN}echo exec=${CWRAPPERS_WRAPPEE.${wrappee}:Q} >> ${CWRAPPERS_CONFIG_DIR}/${CWRAPPERS_CONFIG.${wrappee}}
 .  for cmd in ${WRAPPER_REORDER_CMDS}



Home | Main Index | Thread Index | Old Index