Skip to content

Commit

Permalink
audio/triceratops-lv2: Fix build on non-64-bit systems
Browse files Browse the repository at this point in the history
-fPIC was added by mistake only on 64-bit systems.

Reported by:	fallout
  • Loading branch information
yurivict committed Jul 10, 2023
1 parent d7c6f42 commit 8e497ad
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions audio/triceratops-lv2/files/patch-wscript
@@ -0,0 +1,19 @@
- fPIC is needed on all platforms, not only on 64-bit ones
- otherwise the build breaks

--- wscript.orig 2023-07-10 01:57:23 UTC
+++ wscript
@@ -29,9 +29,10 @@ def configure(conf):
else:
conf.env.append_unique('CXXFLAGS', ['-O2','-funroll-loops','-std=c++0x','-g'])

- if sys.maxsize >= 9223372036854775807:
- print("detected 64 bit architecture, enabling -fPIC")
- conf.env.append_unique('CXXFLAGS', ['-fPIC','-fpermissive','-finline-functions'])
+ #if sys.maxsize >= 9223372036854775807:
+ # print("detected 64 bit architecture, enabling -fPIC")
+ # conf.env.append_unique('CXXFLAGS', ['-fPIC','-fpermissive','-finline-functions'])
+ conf.env.append_unique('CXXFLAGS', ['-fPIC','-fpermissive','-finline-functions'])

if not autowaf.is_child():
autowaf.check_pkg(conf, 'lv2', uselib_store='LV2CORE')

0 comments on commit 8e497ad

Please sign in to comment.