[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/jinx b052929fc0 2/6: Fix ordering issue when linking, r
From: |
ELPA Syncer |
Subject: |
[elpa] externals/jinx b052929fc0 2/6: Fix ordering issue when linking, remove -Wl, --no-as-needed |
Date: |
Mon, 27 Mar 2023 04:58:05 -0400 (EDT) |
branch: externals/jinx
commit b052929fc04aa4208ff01eac28485c3b199cbfe9
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Fix ordering issue when linking, remove -Wl,--no-as-needed
---
jinx.el | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/jinx.el b/jinx.el
index 5179b80c96..d4181f8093 100644
--- a/jinx.el
+++ b/jinx.el
@@ -435,17 +435,15 @@ Returns a pair of updated (START END) bounds."
(error "Jinx: Native modules are not supported"))
(let ((default-directory
(file-name-directory (locate-library "jinx.el" t)))
- (module (concat "jinx-mod" module-file-suffix)))
+ (module (file-name-with-extension "jinx-mod" module-file-suffix)))
(unless (file-exists-p module)
(let ((command
- `("cc" "-O2" "-Wall" "-Wextra" "-fPIC" "-shared"
"-Wl,--no-as-needed"
+ `("cc" "-I." "-O2" "-Wall" "-Wextra" "-fPIC" "-shared"
+ "-o" ,module ,(file-name-with-extension module ".c")
,@(split-string-and-unquote
(condition-case nil
(car (process-lines "pkg-config" "--cflags" "--libs"
"enchant-2"))
- (error "-I/usr/include/enchant-2 -lenchant-2")))
- ,@(and source-directory
- (list (concat "-I" (file-name-concat source-directory
"src/"))))
- "-o" ,module ,(file-name-with-extension module ".c"))))
+ (error "-I/usr/include/enchant-2 -lenchant-2"))))))
(with-current-buffer (get-buffer-create "*jinx module compilation*")
(let ((inhibit-read-only t))
(erase-buffer)
- [elpa] externals/jinx updated (ba2ef74303 -> 1293ba8eda), ELPA Syncer, 2023/03/27
- [elpa] externals/jinx 959d020c99 1/6: Add emacs-module.h from Emacs 27 to avoid compilation error if not found, ELPA Syncer, 2023/03/27
- [elpa] externals/jinx 9204df24b8 4/6: README: Add documentation regarding Enchant backends, ELPA Syncer, 2023/03/27
- [elpa] externals/jinx 1293ba8eda 6/6: Version 0.3, ELPA Syncer, 2023/03/27
- [elpa] externals/jinx 8afc7349e4 3/6: jinx-languages: Use current-locale-environment, ELPA Syncer, 2023/03/27
- [elpa] externals/jinx b052929fc0 2/6: Fix ordering issue when linking, remove -Wl, --no-as-needed,
ELPA Syncer <=
- [elpa] externals/jinx 5e12200fa4 5/6: Update changelog, ELPA Syncer, 2023/03/27