From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Makoto Fujiwara Newsgroups: gmane.emacs.devel Subject: configure.in (START_FILES + LIB_STANDARD) and CRT_DIR sequence Date: Sat, 24 Sep 2011 17:57:41 +0900 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: dough.gmane.org 1316854683 24707 80.91.229.12 (24 Sep 2011 08:58:03 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 24 Sep 2011 08:58:03 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 24 10:57:59 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R7O3Z-0002wd-NJ for ged-emacs-devel@m.gmane.org; Sat, 24 Sep 2011 10:57:57 +0200 Original-Received: from localhost ([::1]:53584 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7O3Y-0001L2-FQ for ged-emacs-devel@m.gmane.org; Sat, 24 Sep 2011 04:57:56 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:41229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7O3W-0001Kl-2K for emacs-devel@gnu.org; Sat, 24 Sep 2011 04:57:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R7O3U-00038F-Ud for emacs-devel@gnu.org; Sat, 24 Sep 2011 04:57:54 -0400 Original-Received: from gw.ki.nu ([218.44.234.233]:36996 helo=mail.ki.nu) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R7O3U-00037p-BU for emacs-devel@gnu.org; Sat, 24 Sep 2011 04:57:52 -0400 Original-Received: from t-105.i.ki.nu.ki.nu ([IPv6:2001:218:463:1::29]) by mail.ki.nu (8.14.2/8.14.2) with ESMTP id p8O8vfCY009987; Sat, 24 Sep 2011 17:57:42 +0900 (JST) User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?ISO-2022-JP-2?B?R29qGyQoRCtXGyhC?=) APEL/10.7 Emacs/24.0.50 (x86_64--netbsd) MULE/6.0 (=?ISO-2022-JP?B?GyRCMlY7Nk4kGyhC?=) X-detected-operating-system: by eggs.gnu.org: NetBSD 3.0 (DF) X-Received-From: 218.44.234.233 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:144239 Archived-At: After following commit, with some Operating system, say NetBSD, build fails to find _fini symbols. ------------- 2011-06-29 Glenn Morris * 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 :-) --------- t-105@makoto 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 t-105@makoto 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.