[newlib-cygwin] Cygwin: configure: Define default valus for target specific variables

Corinna Vinschen corinna@sourceware.org
Fri May 13 12:38:27 GMT 2022


https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=c0d5bb262dcd72b0256ed27460ebd0fd7a7d582d

commit c0d5bb262dcd72b0256ed27460ebd0fd7a7d582d
Author: Corinna Vinschen <corinna@vinschen.de>
Date:   Thu Jan 27 12:41:55 2022 +0100

    Cygwin: configure: Define default valus for target specific variables
    
    Define default values for DLL_ENTRY, DIN_FILE, and TLSOFFSETS_H
    and drop them from the x86_64-specific branch.  Keep the mechanism
    intact to allow other target CPUs if there ever will be.
    
    Signed-off-by: Corinna Vinschen <corinna@vinschen.de>

Diff:
---
 winsup/configure.ac                                   | 10 +++++-----
 winsup/cygwin/{tlsoffsets64.h => tlsoffsets-x86_64.h} |  0
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/winsup/configure.ac b/winsup/configure.ac
index c0a43fc99..5d83c230a 100644
--- a/winsup/configure.ac
+++ b/winsup/configure.ac
@@ -65,12 +65,12 @@ no)	 ;;
 esac
 ])
 
+DLL_ENTRY="dll_entry"
+DIN_FILE="${target_cpu}.din"
+TLSOFFSETS_H="tlsoffsets-${target_cpu}.h"
+
 case "$target_cpu" in
-   x86_64)
-		DLL_ENTRY="dll_entry"
-		DIN_FILE="x86_64.din"
-		TLSOFFSETS_H="tlsoffsets64.h"
-		;;
+   x86_64)	;;
    *)		AC_MSG_ERROR([Invalid target processor "$target_cpu"]) ;;
 esac
 
diff --git a/winsup/cygwin/tlsoffsets64.h b/winsup/cygwin/tlsoffsets-x86_64.h
similarity index 100%
rename from winsup/cygwin/tlsoffsets64.h
rename to winsup/cygwin/tlsoffsets-x86_64.h


More information about the Cygwin-cvs mailing list