-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify build instructions and update README
- Loading branch information
1 parent
45ccd4b
commit 5fc7d19
Showing
3 changed files
with
90 additions
and
23 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
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,44 @@ | ||
From 5c6c502ce2daa9ce9d73a80295bf7c08dc62a183 Mon Sep 17 00:00:00 2001 | ||
From: Jannick Kremer <[email protected]> | ||
Date: Sat, 29 Jun 2024 17:16:11 +0100 | ||
Subject: [PATCH] Adapt compile_libs.sh for compilation on Mac OS | ||
|
||
--- | ||
internal/compile_libs.sh | 16 ++-------------- | ||
1 file changed, 2 insertions(+), 14 deletions(-) | ||
|
||
diff --git a/internal/compile_libs.sh b/internal/compile_libs.sh | ||
index 38c6655..49a6a7e 100755 | ||
--- a/internal/compile_libs.sh | ||
+++ b/internal/compile_libs.sh | ||
@@ -27,7 +27,7 @@ if [ -n "${CPPFLAGS}" ]; then | ||
echo "CPPFLAGS=${CPPFLAGS}" | ||
fi | ||
|
||
-g++ $CFLAGS $CPPFLAGS $CXXFLAGS -shared -fPIC \ | ||
+g++ $CFLAGS $CPPFLAGS $CXXFLAGS -dynamiclib -fPIC \ | ||
cldutil.cc cldutil_shared.cc compact_lang_det.cc compact_lang_det_hint_code.cc \ | ||
compact_lang_det_impl.cc debug.cc fixunicodevalue.cc \ | ||
generated_entities.cc generated_language.cc generated_ulscript.cc \ | ||
@@ -37,17 +37,5 @@ g++ $CFLAGS $CPPFLAGS $CXXFLAGS -shared -fPIC \ | ||
cld_generated_cjk_delta_bi_4.cc generated_distinct_bi_0.cc \ | ||
cld2_generated_quadchrome_2.cc cld2_generated_deltaoctachrome.cc \ | ||
cld2_generated_distinctoctachrome.cc cld_generated_score_quad_octa_2.cc \ | ||
- -o libcld2.so $LDFLAGS -Wl,-soname=libcld2.so | ||
- | ||
-g++ $CFLAGS $CPPFLAGS $CXXFLAGS -shared -fPIC \ | ||
- cldutil.cc cldutil_shared.cc compact_lang_det.cc compact_lang_det_hint_code.cc \ | ||
- compact_lang_det_impl.cc debug.cc fixunicodevalue.cc \ | ||
- generated_entities.cc generated_language.cc generated_ulscript.cc \ | ||
- getonescriptspan.cc lang_script.cc offsetmap.cc scoreonescriptspan.cc \ | ||
- tote.cc utf8statetable.cc \ | ||
- cld_generated_cjk_uni_prop_80.cc cld2_generated_cjk_compatible.cc \ | ||
- cld_generated_cjk_delta_bi_32.cc generated_distinct_bi_0.cc \ | ||
- cld2_generated_quad0122.cc cld2_generated_deltaocta0122.cc \ | ||
- cld2_generated_distinctocta0122.cc cld_generated_score_quad_octa_0122.cc \ | ||
- -o libcld2_full.so $LDFLAGS -Wl,-soname=libcld2_full.so | ||
+ -o libcld2.dylib $LDFLAGS -Wl,-install_name,libcld2.dylib | ||
|
||
-- | ||
2.45.2 | ||
|