Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make $(LN_S) overridable #3

Open
komh opened this issue Aug 12, 2024 · 0 comments
Open

Make $(LN_S) overridable #3

komh opened this issue Aug 12, 2024 · 0 comments

Comments

@komh
Copy link

komh commented Aug 12, 2024

Hi/2.

This allows for a user to override $(LN_S).

Sorry for including irrelevant cosmetic changes.

0002-Make-LN_S-overridable.patch

From c5fa0cce2ef95f2769b49b57566841d608c165c9 Mon Sep 17 00:00:00 2001
From: KO Myung-Hun <[email protected]>
Date: Fri, 9 Aug 2024 21:47:08 +0900
Subject: [PATCH 2/4] Make $(LN_S) overridable

---
 libtool.os2 | 28 ++++++++++++++--------------
 1 file changed, 14 insertions(+), 14 deletions(-)

diff --git a/libtool.os2 b/libtool.os2
index ed22830ad..5c98f1bfd 100644
--- a/libtool.os2
+++ b/libtool.os2
@@ -91,13 +91,13 @@ CC="gcc -isystem /usr/local/i386-pc-os2-emx/include -isystem /usr/local/i386-pc-
 with_gcc=yes
 
 # The linker used to build libraries.
-LD="ld"
-
-# Whether we need hard or soft links.
-LN_S="ln -s"
-
-# A BSD-compatible nm program.
-NM="nm"
+LD="ld"
+
+# Whether we need hard or soft links.
+LN_S="${LN_S-ln -s}"
+
+# A BSD-compatible nm program.
+NM="nm"
 
 # A symbol stripping program
 STRIP=:
@@ -6107,13 +6107,13 @@ CC="gcc -shared-libgcc -nostdinc++ -B/usr/local/i386-pc-os2-emx/lib/ -isystem /u
 with_gcc=yes
 
 # The linker used to build libraries.
-LD="ld"
-
-# Whether we need hard or soft links.
-LN_S="ln -s"
-
-# A BSD-compatible nm program.
-NM="nm"
+LD="ld"
+
+# Whether we need hard or soft links.
+LN_S="${LN_S-ln -s}"
+
+# A BSD-compatible nm program.
+NM="nm"
 
 # A symbol stripping program
 STRIP=:
-- 
2.42.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant