help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Need help packaging IUP (part 1: IM)


From: Reza Housseini
Subject: Re: Need help packaging IUP (part 1: IM)
Date: Tue, 21 Mar 2023 17:01:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.7.2

On 3/21/23 16:43, Ekaitz Zarraga wrote:
Have you tried something like

(add-before 'configure 'set-ldflags
(lambda _
(substitute* "tecmake.mak"
(("STDLDFLAGS := -shared" all) (string-append all "
-Wl,-rpath="#$output "/lib")))))

not tested though.


I'll give a try to this. I didn't try it!
Thanks!


Worked! Thank you!!

There is a confusion (which I also had) linking LDFLAGS to GCC, but there is no connection, see for example this stackoverflow answer: https://stackoverflow.com/a/16047559. There are only a handful of environment variables affecting the GCC compiler (https://gcc.gnu.org/onlinedocs/gcc/Environment-Variables.html) and none of them is for setting rpaths. Therefore you have to provide them explicitly to the compiler via normal flags.

--
Reza Housseini

This message is signed with my GnuPG key:

    C0F3 0812 9AF2 80F4 0830 C2C1 C375 C6AF 0512 5C52

Attachment: OpenPGP_0xC375C6AF05125C52.asc
Description: OpenPGP public key

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

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