summaryrefslogtreecommitdiff
path: root/debian/patches/debian.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/debian.patch')
-rw-r--r--debian/patches/debian.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/debian/patches/debian.patch b/debian/patches/debian.patch
new file mode 100644
index 0000000..bf13934
--- /dev/null
+++ b/debian/patches/debian.patch
@@ -0,0 +1,24 @@
+--- freebasic-1.10.0~2022.10.30.git.d6c7b0d.orig/makefile
++++ freebasic-1.10.0~2022.10.30.git.d6c7b0d/makefile
+@@ -157,6 +157,7 @@ CFLAGS := -Wfatal-errors -O2
+ # Avoid gcc exception handling bloat
+ CFLAGS += -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables
+ FBFLAGS := -maxerr 1
++FBCFLAGS := -i inc -d 'LIBDIR="$(libdir)"'
+ AS = $(BUILD_PREFIX)as
+ AR = $(BUILD_PREFIX)ar
+ CC = $(BUILD_PREFIX)gcc
+--- freebasic-1.10.0~2022.10.30.git.d6c7b0d.orig/src/compiler/fbc.bas
++++ freebasic-1.10.0~2022.10.30.git.d6c7b0d/src/compiler/fbc.bas
+@@ -2958,7 +2958,11 @@ private sub fbcSetupCompilerPaths( )
+ fbc.binpath = fbc.prefix + "bin" + FB_HOST_PATHDIV + fbc.targetprefix
+ end if
+ fbc.incpath = fbc.prefix + "include" + FB_HOST_PATHDIV + fbname
++#ifndef LIBDIR
+ fbc.libpath = fbc.prefix + libdirname + FB_HOST_PATHDIV + fbname + FB_HOST_PATHDIV + targetid
++#else
++ fbc.libpath = fbc.prefix + LIBDIR
++#endif
+ #endif
+ end sub
+