aboutsummaryrefslogtreecommitdiff
path: root/libgrust/libproc_macro
diff options
context:
space:
mode:
authorPierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>2023-04-26 10:31:35 +0200
committerArthur Cohen <arthur.cohen@embecosm.com>2024-01-16 18:34:16 +0100
commit71180a9eed367667e7b2c3f6aea1ee1bba15e9b3 (patch)
treeaf65568fb07413cdbbbbf01b6ae04adb0c3729cf /libgrust/libproc_macro
parentb1a8cb2fbf63f9579c96e26fdac3ce611461c58b (diff)
downloadgcc-71180a9eed367667e7b2c3f6aea1ee1bba15e9b3.zip
gcc-71180a9eed367667e7b2c3f6aea1ee1bba15e9b3.tar.gz
gcc-71180a9eed367667e7b2c3f6aea1ee1bba15e9b3.tar.bz2
gccrs: libproc_macro: Build statically
We do not need dynamic linking, all use case of this library cover can be done statically hence the change. gcc/rust/ChangeLog: * Make-lang.in: Link against the static libproc_macro. libgrust/ChangeLog: * Makefile.am: Remove libtool forwarding. * Makefile.in: Regenerate. * libproc_macro/Makefile.am: Creates an archive instead of using libtool. * libproc_macro/Makefile.in: Regenerate. Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
Diffstat (limited to 'libgrust/libproc_macro')
-rw-r--r--libgrust/libproc_macro/Makefile.am7
-rw-r--r--libgrust/libproc_macro/Makefile.in2
2 files changed, 3 insertions, 6 deletions
diff --git a/libgrust/libproc_macro/Makefile.am b/libgrust/libproc_macro/Makefile.am
index e714362..0fe2211 100644
--- a/libgrust/libproc_macro/Makefile.am
+++ b/libgrust/libproc_macro/Makefile.am
@@ -2,7 +2,7 @@ SUFFIXES = .cc .o .a .lo .la
ACLOCAL_AMFLAGS = -I .. -I ../../config
-AR=@AR@
+AR = @AR@
AR_FLAGS = rc
# Work around what appears to be a GNU make bug handling MAKEFLAGS
@@ -48,13 +48,11 @@ AM_MAKEFLAGS = \
"TARGET_LIB_PATH=$(TARGET_LIB_PATH)"
TARGETLIB = ./libproc_macro.a
-
LIBOBJS = @LIBOBJS@
-
objext = @OBJEXT@
REQUIRED_OFILES = \
- ./proc_macro.$(objext)
+ ./proc_macro.$(objext) ./literal.$(objext) ./group.$(objext) ./ident.$(objext) ./punct.$(objext) ./tokenstream.$(objext) ./tokentree.$(objext)
all: $(TARGETLIB)
@@ -62,4 +60,3 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(LIBOBJS)
-rm -f $(TARGETLIB)
$(AR) $(AR_FLAGS) $(TARGETLIB) \
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS)
-
diff --git a/libgrust/libproc_macro/Makefile.in b/libgrust/libproc_macro/Makefile.in
index 9ff1dd6..6eb5365 100644
--- a/libgrust/libproc_macro/Makefile.in
+++ b/libgrust/libproc_macro/Makefile.in
@@ -311,7 +311,7 @@ AM_MAKEFLAGS = \
TARGETLIB = ./libproc_macro.a
objext = @OBJEXT@
REQUIRED_OFILES = \
- ./proc_macro.$(objext)
+ ./proc_macro.$(objext) ./literal.$(objext) ./group.$(objext) ./ident.$(objext) ./punct.$(objext) ./tokenstream.$(objext) ./tokentree.$(objext)
all: all-am