emacs-elpa-diffs
[Top][All Lists]
Advanced

[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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]