bugGNU Octave - Bugs: bug #63511, passing $ORIGIN via LDFLAGS lead...

 
 

bug #63511: passing $ORIGIN via LDFLAGS lead to fortran compile failure

Submitter:  Thomas Arndt <arndtthomas>
Submitted:  Mon 12 Dec 2022 01:51:24 PM UTC
   
 
Category:  Configuration and Build System Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Installation Failure
Status:  None Assigned to:  None
Originator Name:  Thomas Open/Closed:  * Open
Release:  * 7.3.0 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 13 Dec 2022 03:39:12 PM UTC, comment #1: 

I managed to pass it via LDFLAGS to make and not to configure!

Thomas Arndt <arndtthomas>
Mon 12 Dec 2022 01:51:24 PM UTC, original submission:  

Hi guys,

I like to compile Octave and make it portable, so I thought to use -Wl,-R,$ORIGIN/../lib/... to point to the library location even if the compiled package was moved. However the configure process fails, since it gets handed over to gfortran as -R,$ORIGIN/../lib. This leads configure to fail, since only g++ understands this properly:
configure: error: linking to Fortran libraries from C fails

Is there a way without using patchelf to set the rpath e.g.:
 0x000000000000000f (RPATH) Library rpath: [$ORIGIN/../lib]
(i did this for other programs too)

I like to get rid of the LD_LIBRARY_PATH settings!

KR,
Thomas

Thomas Arndt <arndtthomas>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by arndtthomas (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code