public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3287] libphobos: Don't add zlib when ENABLE_LIBDRUNTIME_ONLY
@ 2021-09-01 13:00 Iain Buclaw
  0 siblings, 0 replies; only message in thread
From: Iain Buclaw @ 2021-09-01 13:00 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:53cfed5cc920e3aba98958415b42d49e9a80a6e3

commit r12-3287-g53cfed5cc920e3aba98958415b42d49e9a80a6e3
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date:   Wed Sep 1 14:11:05 2021 +0200

    libphobos: Don't add zlib when ENABLE_LIBDRUNTIME_ONLY
    
    The D run-time library does not depend on zlib, so only include it in
    the library when Phobos is being built as well.
    
    libphobos/ChangeLog:
    
            * src/Makefile.am: Don't add zlib when ENABLE_LIBDRUNTIME_ONLY.
            * src/Makefile.in: Regenerate.

Diff:
---
 libphobos/src/Makefile.am | 4 ++++
 libphobos/src/Makefile.in | 5 +++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/libphobos/src/Makefile.am b/libphobos/src/Makefile.am
index f97ddccaca8..9f6251009f6 100644
--- a/libphobos/src/Makefile.am
+++ b/libphobos/src/Makefile.am
@@ -45,8 +45,12 @@ libgphobos_la_SOURCES = $(ALL_PHOBOS_SOURCES)
 libgphobos_la_LIBTOOLFLAGS =
 libgphobos_la_LDFLAGS = -Wc,-nophoboslib,-dstartfiles,-B../libdruntime/gcc \
     -version-info $(libtool_VERSION)
+if ENABLE_LIBDRUNTIME_ONLY
+libgphobos_la_LIBADD = ../libdruntime/libgdruntime_convenience.la
+else
 libgphobos_la_LIBADD = \
     ../libdruntime/libgdruntime_convenience.la $(LIBZ)
+endif
 libgphobos_la_DEPENDENCIES = \
     ../libdruntime/libgdruntime_convenience.la libgphobos.spec
 
diff --git a/libphobos/src/Makefile.in b/libphobos/src/Makefile.in
index 4f76e1077d5..f8b76486e6e 100644
--- a/libphobos/src/Makefile.in
+++ b/libphobos/src/Makefile.in
@@ -504,9 +504,10 @@ libgphobos_la_LIBTOOLFLAGS =
 libgphobos_la_LDFLAGS = -Wc,-nophoboslib,-dstartfiles,-B../libdruntime/gcc \
     -version-info $(libtool_VERSION)
 
-libgphobos_la_LIBADD = \
-    ../libdruntime/libgdruntime_convenience.la $(LIBZ)
+@ENABLE_LIBDRUNTIME_ONLY_FALSE@libgphobos_la_LIBADD = \
+@ENABLE_LIBDRUNTIME_ONLY_FALSE@    ../libdruntime/libgdruntime_convenience.la $(LIBZ)
 
+@ENABLE_LIBDRUNTIME_ONLY_TRUE@libgphobos_la_LIBADD = ../libdruntime/libgdruntime_convenience.la
 libgphobos_la_DEPENDENCIES = \
     ../libdruntime/libgdruntime_convenience.la libgphobos.spec


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-01 13:00 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-01 13:00 [gcc r12-3287] libphobos: Don't add zlib when ENABLE_LIBDRUNTIME_ONLY Iain Buclaw

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).