blob: bf13934d24b4bb1b9531a14aa4cc933ed6ba170b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
|