|
From: | Rik |
Subject: | [Octave-patch-tracker] [patch #8919] Start of patch to enable visibility attributes for GCC in build system |
Date: | Fri, 26 Feb 2016 17:32:16 +0000 |
User-agent: | Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0 |
URL: <http://savannah.gnu.org/patch/?8919> Summary: Start of patch to enable visibility attributes for GCC in build system Project: GNU Octave Submitted by: rik5 Submitted on: Fri 26 Feb 2016 09:32:15 AM PST Category: None Priority: 5 - Normal Status: None Privacy: Public Assigned to: None Originator Email: Open/Closed: Open Discussion Lock: Any _______________________________________________________ Details: By using visibility attributes a programmer can control which functions are exported into the symbol table of a shared object. By reducing the number of symbols the linker can run faster and the generated shared object is smaller. For an explanation of the benefits and the approach see: https://gcc.gnu.org/wiki/Visibility. Octave already has support mostly in place for this. Steps: 1) make maintainer-clean 2) Apply visibility.patch from this issue report 3) change CFLAGS and CXXFLAGS to include "-fvisibility=hidden" 4) bootstrap 5) configure 6) make The build currently fails because liboctinterp is looking for symbols that have not been exported from liboctave. This requires finding the necessary functions and decorating them with OCTAVE_API so they are exported into the symbol table of liboctave. This is where things stand today (2/26/2016). _______________________________________________________ File Attachments: ------------------------------------------------------- Date: Fri 26 Feb 2016 09:32:16 AM PST Name: visibility.patch Size: 1kB By: rik5 <http://savannah.gnu.org/patch/download.php?file_id=36475> _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/patch/?8919> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |