-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
48 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
From e23a29909cfca320e9aec807a6312649f1d346b8 Mon Sep 17 00:00:00 2001 | ||
From: ysdragon <[email protected]> | ||
Date: Mon, 4 Nov 2024 19:29:41 +0200 | ||
Subject: [PATCH] Fix the `extensions/ringfastpro` build script so that it | ||
outputs the library to the lib directory | ||
|
||
--- | ||
extensions/ringfastpro/buildclang.sh | 6 +----- | ||
extensions/ringfastpro/buildgcc.sh | 7 +------ | ||
2 files changed, 2 insertions(+), 11 deletions(-) | ||
|
||
diff --git a/extensions/ringfastpro/buildclang.sh b/extensions/ringfastpro/buildclang.sh | ||
index cf01e013..7f6d4b17 100755 | ||
--- a/extensions/ringfastpro/buildclang.sh | ||
+++ b/extensions/ringfastpro/buildclang.sh | ||
@@ -1,6 +1,2 @@ | ||
clang -c -fpic -O2 fastpro.c -I $PWD/../../language/include | ||
-clang -dynamiclib -o libring_fastpro.dylib fastpro.o -L $PWD/../../lib -lring | ||
-cp libring_fastpro.dylib /usr/local/lib | ||
- | ||
- | ||
- | ||
+clang -dynamiclib -o $PWD/../../lib/libring_fastpro.dylib fastpro.o -L $PWD/../../lib -lring | ||
\ No newline at end of file | ||
diff --git a/extensions/ringfastpro/buildgcc.sh b/extensions/ringfastpro/buildgcc.sh | ||
index bcd1b49b..0d1a30a0 100755 | ||
--- a/extensions/ringfastpro/buildgcc.sh | ||
+++ b/extensions/ringfastpro/buildgcc.sh | ||
@@ -1,8 +1,3 @@ | ||
gcc -c -fpic -O2 fastpro.c -I $PWD/../../language/include | ||
-gcc -shared -o libring_fastpro.so fastpro.o -L $PWD/../../lib -lring | ||
-sudo cp libring_fastpro.so /usr/lib | ||
-sudo cp libring_fastpro.so /usr/lib64 | ||
- | ||
- | ||
- | ||
+gcc -shared -o $PWD/../../lib/libring_fastpro.so fastpro.o -L $PWD/../../lib -lring | ||
|
||
-- | ||
2.47.0 | ||
|
File renamed without changes.