configure/Makefile: make Cygwin force less
authorSitsofe Wheeler <sitsofe@yahoo.com>
Mon, 26 Mar 2018 14:50:03 +0000 (15:50 +0100)
committerSitsofe Wheeler <sitsofe@yahoo.com>
Tue, 27 Mar 2018 19:18:42 +0000 (20:18 +0100)
Continue the work started in commit
ca205a752c3d6ebe7de74a3dfe81808e48a502e3 ("configure: Make Cygwin take
regular configure path") by removing the forceful setting of flags that
are automatically detected anyway.

Even CONFIG_64BIT_LLP64 is unneeded because despite their names
CONFIG_32BIT/CONFIG_64BIT are only used to control the size's of words
and the regular configure path correctly detects CONFIG_32BIT for 64 bit
Windows even though it's LLP64.

Signed-off-by: Sitsofe Wheeler <sitsofe@yahoo.com>
Makefile
configure

index d45ba6b5585fe43ce793937f0fa5c87828c434b4..5ab79234afe52bf689220bc680452bf2bd8b1343 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -59,9 +59,6 @@ ifdef CONFIG_LIBHDFS
   SOURCE += engines/libhdfs.c
 endif
 
   SOURCE += engines/libhdfs.c
 endif
 
-ifdef CONFIG_64BIT_LLP64
-  CFLAGS += -DBITS_PER_LONG=32
-endif
 ifdef CONFIG_64BIT
   CFLAGS += -DBITS_PER_LONG=64
 endif
 ifdef CONFIG_64BIT
   CFLAGS += -DBITS_PER_LONG=64
 endif
index b3638807432749414c8ef28a46d1d41e159092bc..a5c0f6ef84482d95fa0e7c2fbf45591a7921b134 100755 (executable)
--- a/configure
+++ b/configure
@@ -332,10 +332,6 @@ CYGWIN*)
       cc="x86_64-w64-mingw32-gcc"
     fi
   fi
       cc="x86_64-w64-mingw32-gcc"
     fi
   fi
-  if test ! -z "$build_32bit_win" && test "$build_32bit_win" = "yes"; then
-    output_sym "CONFIG_32BIT"
-  else
-    output_sym "CONFIG_64BIT_LLP64"
 
   target_win_ver=$(echo "$target_win_ver" | tr '[:lower:]' '[:upper:]')
   if test -z "$target_win_ver"; then
 
   target_win_ver=$(echo "$target_win_ver" | tr '[:lower:]' '[:upper:]')
   if test -z "$target_win_ver"; then
@@ -357,9 +353,6 @@ CYGWIN*)
   # We now take the regular configuration path without having exit 0 here.
   # Flags below are still necessary mostly for MinGW.
   socklen_t="yes"
   # We now take the regular configuration path without having exit 0 here.
   # Flags below are still necessary mostly for MinGW.
   socklen_t="yes"
-  sfaa="yes"
-  sync_sync="yes"
-  cmp_swap="yes"
   rusage_thread="yes"
   fdatasync="yes"
   clock_gettime="yes" # clock_monotonic probe has dependency on this
   rusage_thread="yes"
   fdatasync="yes"
   clock_gettime="yes" # clock_monotonic probe has dependency on this
@@ -367,11 +360,7 @@ CYGWIN*)
   gettimeofday="yes"
   sched_idle="yes"
   tcp_nodelay="yes"
   gettimeofday="yes"
   sched_idle="yes"
   tcp_nodelay="yes"
-  tls_thread="yes"
-  static_assert="yes"
   ipv6="yes"
   ipv6="yes"
-  mkdir_two="no"
-  echo "BUILD_CFLAGS=$CFLAGS -include config-host.h -D_GNU_SOURCE" >> $config_host_mak
   ;;
 esac
 
   ;;
 esac