public inbox for bzip2-devel@sourceware.org
 help / color / mirror / Atom feed
From: Eli Schwartz <eschwartz93@gmail.com>
To: bzip2-devel@sourceware.org
Subject: [PATCH] shared makefile: also respect LDFLAGS
Date: Sun, 10 Nov 2024 20:52:41 -0500	[thread overview]
Message-ID: <20241111015315.1272316-1-eschwartz93@gmail.com> (raw)
In-Reply-To: <165475384722.17277.18269615533597437835-5@git.sr.ht>

The default Makefile supported this for a long time but due to an
oversight, this one did not.

Signed-off-by: Eli Schwartz <eschwartz93@gmail.com>
---

Unsure why I didn't notice this when I sent the initial patch series...

 Makefile-libbz2_so.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile-libbz2_so.in b/Makefile-libbz2_so.in
index 21fbe7c..a7d0724 100644
--- a/Makefile-libbz2_so.in
+++ b/Makefile-libbz2_so.in
@@ -25,6 +25,7 @@ SHELL=/bin/sh
 CC=@CC@
 BIGFILES=-D_FILE_OFFSET_BITS=64
 CFLAGS=-fpic -fPIC -Wall -Winline @CFLAGS@ $(BIGFILES)
+LDFLAGS=@LDFLAGS@
 
 prefix = @prefix@
 exec_prefix = @exec_prefix@
@@ -42,7 +43,7 @@ OBJS= blocksort.o  \
 all: libbz2.so.@PACKAGE_VERSION@ bzip2-shared
 
 libbz2.so.@PACKAGE_VERSION@: $(OBJS)
-	$(CC) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.@PACKAGE_VERSION@ $(OBJS)
+	$(CC) $(LDFLAGS) -shared -Wl,-soname -Wl,libbz2.so.1.0 -o libbz2.so.@PACKAGE_VERSION@ $(OBJS)
 	rm -f libbz2.so.1.0
 	ln -s libbz2.so.@PACKAGE_VERSION@ libbz2.so.1.0
 
-- 
2.45.2


  parent reply	other threads:[~2024-11-11  1:53 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-03  3:45 [PATCH bzip2 1/6] install relative symlinks ~eschwartz
2022-06-03  4:20 ` [PATCH bzip2 2/6] port the build configuration to autoconf ~eschwartz
2022-06-09  5:56   ` Eli Schwartz
2022-06-03  4:48 ` [PATCH bzip2 4/6] make a couple program aliases symlinks instead of copies ~eschwartz
2022-06-03  4:54 ` [PATCH bzip2 5/6] install man page symlinks for a couple more symlinked commands ~eschwartz
2022-06-03  5:09 ` [PATCH bzip2 6/6] install a pkg-config file with instructions for linking to libbz2 ~eschwartz
2022-06-09  5:52   ` Eli Schwartz
2022-10-23 16:03     ` Sam James
2024-11-07 12:15       ` Sam James
2024-11-10 23:55         ` Mark Wielaard
2024-11-10 23:59           ` Eli Schwartz
2024-12-16 15:43             ` Eli Schwartz
2025-01-11 13:01               ` Sam James
2025-09-29 21:31                 ` Sam James
2025-10-17 21:15                   ` Sam James
2025-11-13  4:48                     ` Sam James
2024-11-11  1:52   ` Eli Schwartz [this message]
2022-06-09  4:50 ` [PATCH bzip2 3/6] shared Makefile: add install rule ~eschwartz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241111015315.1272316-1-eschwartz93@gmail.com \
    --to=eschwartz93@gmail.com \
    --cc=bzip2-devel@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).