unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* configure.in (START_FILES + LIB_STANDARD) and CRT_DIR sequence
@ 2011-09-24  8:57 Makoto Fujiwara
  2011-09-24  9:41 ` Makoto Fujiwara
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Makoto Fujiwara @ 2011-09-24  8:57 UTC (permalink / raw)
  To: emacs-devel

After following commit, with some Operating system, say NetBSD,
build fails to find _fini symbols.
  -------------
  2011-06-29  Glenn Morris  <rgm@gnu.org>

         * 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.



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-09-24 19:09 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-24  8:57 configure.in (START_FILES + LIB_STANDARD) and CRT_DIR sequence Makoto Fujiwara
2011-09-24  9:41 ` Makoto Fujiwara
2011-09-24 10:56 ` Makoto Fujiwara
2011-09-24 19:09 ` Glenn Morris

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).