diff options
author | Mike Frysinger <vapier@gentoo.org> | 2023-10-15 22:58:56 +0545 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2024-01-01 18:23:28 -0500 |
commit | 024a2b53b5128d5f7fcaea0779b1643c062fe3a4 (patch) | |
tree | 1b54575c11186a80e53b505a7e24595a2c31f95e /sim/m32c | |
parent | bf53e171b5d03e0fc3d84965b73836201ddc35e4 (diff) | |
download | binutils-users/vapier/sim/gnulib-build.zip binutils-users/vapier/sim/gnulib-build.tar.gz binutils-users/vapier/sim/gnulib-build.tar.bz2 |
sim: use build-gnulib with build-time tools [PR sim/30882]users/vapier/sim/gnulib-build
Some of our build-time tools are fairly complicated and require some
POSIX APIs that the build system doesn't provide. Leverage the new
build-gnulib tree to provide fallback implementations automatically.
Diffstat (limited to 'sim/m32c')
-rw-r--r-- | sim/m32c/local.mk | 1 | ||||
-rw-r--r-- | sim/m32c/opc2c.c | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/sim/m32c/local.mk b/sim/m32c/local.mk index 39620b5..f8efd07 100644 --- a/sim/m32c/local.mk +++ b/sim/m32c/local.mk @@ -61,6 +61,7 @@ noinst_PROGRAMS += %D%/run %D%/modules.c: | $(%C%_BUILD_OUTPUTS) %C%_opc2c_SOURCES = %D%/opc2c.c +%C%_opc2c_LDADD = $(LIBS_FOR_BUILD) # These rules are copied from automake, but tweaked to use FOR_BUILD variables. %D%/opc2c$(EXEEXT): $(%C%_opc2c_OBJECTS) $(%C%_opc2c_DEPENDENCIES) %D%/$(am__dirstamp) diff --git a/sim/m32c/opc2c.c b/sim/m32c/opc2c.c index 113e390..1b2b133 100644 --- a/sim/m32c/opc2c.c +++ b/sim/m32c/opc2c.c @@ -19,7 +19,7 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ /* This must come before any other includes. */ -#include "defs.h" +#include "gnulib/config.h" #include <stdio.h> #include <string.h> |