Index: configure --- configure.orig 2019-10-14 15:34:47.000000000 +0200 +++ configure 2019-10-15 08:31:40.689832000 +0200 @@ -4225,9 +4225,9 @@ CFLAGS=$ac_save_CFLAGS elif test $ac_cv_prog_cc_g = yes; then if test "$GCC" = yes; then - CFLAGS="-g -O2" + CFLAGS="-O2" else - CFLAGS="-g" + CFLAGS="" fi else if test "$GCC" = yes; then @@ -6883,7 +6883,7 @@ OPT="-g -O0 -Wall" fi else - OPT="-g $WRAP -O3 -Wall" + OPT="$WRAP -O3 -Wall" fi ;; *) @@ -9541,7 +9541,7 @@ then LINKFORSHARED="-Wl,--export-dynamic" fi;; - SunOS/5*) case $CC in + SunOS/5*) case gcc in *gcc*) if $CC -Xlinker --help 2>&1 | grep export-dynamic >/dev/null then Index: setup.py --- setup.py.orig 2019-10-14 15:34:47.000000000 +0200 +++ setup.py 2019-10-15 08:32:33.256019000 +0200 @@ -645,12 +645,6 @@ add_dir_to_list(dir_list, directory) def configure_compiler(self): - # Ensure that /usr/local is always used, but the local build - # directories (i.e. '.' and 'Include') must be first. See issue - # 10520. - if not CROSS_COMPILING: - add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib') - add_dir_to_list(self.compiler.include_dirs, '/usr/local/include') # only change this for cross builds for 3.3, issues on Mageia if CROSS_COMPILING: self.add_cross_compiling_paths() @@ -1097,14 +1091,8 @@ # top of the normal inc_dirs. db_inc_paths = [ '/usr/include/db4', - '/usr/local/include/db4', '/opt/sfw/include/db4', - '/usr/include/db3', - '/usr/local/include/db3', - '/opt/sfw/include/db3', - # Fink defaults (http://fink.sourceforge.net/) '/sw/include/db4', - '/sw/include/db3', ] # 4.x minor number specific paths for x in gen_db_minor_ver_nums(4): @@ -1879,6 +1867,7 @@ dotversion = dotversion[:-1] + '.' + dotversion[-1] tcl_include_sub = [] tk_include_sub = [] + dotversion = '' for dir in self.inc_dirs: tcl_include_sub += [dir + os.sep + "tcl" + dotversion] tk_include_sub += [dir + os.sep + "tk" + dotversion]