fix build
authorMazet Laurent <laurent.mazet@thalesgroup.com>
Thu, 27 Nov 2025 17:57:49 +0000 (18:57 +0100)
committerMazet Laurent <laurent.mazet@thalesgroup.com>
Thu, 27 Nov 2025 17:57:49 +0000 (18:57 +0100)
Makerule.in
configure
configure.ac

index fc0f586cdf2e673fa3fb4170b2a867f3510c7c17..5621f42363a4d50493879863b4f337552a53f537 100644 (file)
@@ -45,7 +45,7 @@ clean-local:
        @$(call removefile,"object file",$(addprefix $(OBJ_BUILD_DIR)/,$(OBJECTS)))
        @$(call removefile,"tmp file",$(TMPFILES))
 
-purge: purge-recursive purge-local
+purge: clean purge-recursive purge-local
 
 purge-local: clean-local
        @$(call removefile,"config file",$(CONFIGS))
@@ -112,7 +112,7 @@ endif
 prog_%$(EXECEXT): %.o
        @echo "Creating program $@"
        @rm -f $@
-       @$(LINK) -lfb $< -o $(BIN_BUILD_DIR)/$@
+       @$(LINK) $< $(LIBS) -o $(BIN_BUILD_DIR)/$@
 ifneq (${DEBUG},true)
        @echo "Stripping program $@"
        @$(STRIP) $(BIN_BUILD_DIR)/$@
index 3f1425bca6e286a34c82cad9481eb472edb036b5..f9b069072f519e64a6503ec587b6edb214f779d4 100755 (executable)
--- a/configure
+++ b/configure
@@ -5039,7 +5039,7 @@ fi
 
 
 case "$host" in
-  *-*-cygwin*)
+  *-*-cygwin*|*-*-mingw*)
     SHARED_LIBS=false
     ;;
 esac
@@ -5073,7 +5073,7 @@ case "$host" in
     SH_LD=ld
     SH_LDFLAGS=-Bshareable
   ;;
-  *-*-cygwin*)
+  *-*-cygwin*|*-*-mingw*)
     EXECEXT=".exe"
   ;;
   *-*-linux*)
index 2fe9cd10e747fc7eb1d6287dc6022a970653e3f9..73fcf5934f5cbb535c5a56bda63b6f54e1ba6b7b 100644 (file)
@@ -174,10 +174,10 @@ AC_ARG_ENABLE(shared,
   SHARED_LIBS=true)
 AC_SUBST(SHARED_LIBS)
 
-dnl Some check for cygwin
+dnl Some check for cygwin|mingw
 
 case "$host" in
-  *-*-cygwin*)
+  *-*-cygwin*|*-*-mingw*)
     SHARED_LIBS=false
     ;;
 esac
@@ -208,7 +208,7 @@ case "$host" in
     SH_LD=ld
     SH_LDFLAGS=-Bshareable
   ;;
-  *-*-cygwin*)
+  *-*-cygwin*|*-*-mingw*)
     EXECEXT=".exe"
   ;;
   *-*-linux*)