[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
configure.in (START_FILES + LIB_STANDARD) and CRT_DIR sequence
From: |
Makoto Fujiwara |
Subject: |
configure.in (START_FILES + LIB_STANDARD) and CRT_DIR sequence |
Date: |
Sat, 24 Sep 2011 17:57:41 +0900 |
User-agent: |
Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Goj$(D+W(B) APEL/10.7 Emacs/24.0.50 (x86_64--netbsd) MULE/6.0 (花散里) |
After following commit, with some Operating system, say NetBSD,
build fails to find _fini symbols.
-------------
2011-06-29 Glenn Morris <address@hidden>
* configure.in: Try to test for the required crt*.o files.
-------------
It turned out the testing line 1011 of below never get true
because CRT_DIR is empty yet. (Missing parenthesis is not important :-)
---------
address@hidden 17:49:33/110924(..work/emacs)% cat -n configure.in | sed -n
1002,1019p
1002 gnu-linux | gnu-kfreebsd )
1003 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtn.o'
1004 START_FILES='pre-crt0.o $(CRT_DIR)/crt1.o $(CRT_DIR)/crti.o'
1005 ;;
1006 hpux10-20 | hpux11 )
1007 LIB_STANDARD=-lc
1008 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o'
1009 ;;
1010 netbsd | openbsd )
1011 if test -f $CRT_DIR/crti.o; then
1012 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o
$(CRT_DIR)/crtn.o'
1013 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crti.o
$(CRT_DIR)/crtbegin.o'
1014 else
1015 LIB_STANDARD='-lgcc -lc -lgcc $(CRT_DIR)/crtend.o'
1016 START_FILES='pre-crt0.o $(CRT_DIR)/crt0.o $(CRT_DIR)/crtbegin.o'
1017 fi
1018 ;;
1019 esac
address@hidden 17:49:38/110924(..work/emacs)%
---------
I think the order of
START_FILES + LIB_STANDARD
and
CRT_DIR handling of configure.in
should be swapped. Say CRT_DIR comes before
START_FILES processing.
Am I right ?
Thanks always,
---
Makoto Fujiwara,
Chiba, Japan, Narita Airport and Disneyland prefecture.
- configure.in (START_FILES + LIB_STANDARD) and CRT_DIR sequence,
Makoto Fujiwara <=