OSDN Git Service

GCC properly provides CTOR/DTOR END/LIST symbols already via the normal
[uclinux-h8/elf2flt.git] / configure.in
index 5ab8983..e18e41c 100644 (file)
@@ -55,6 +55,12 @@ AC_ARG_ENABLE(emit_relocs,
        [ emit_relocs=yes ]
 )
 
+AC_ARG_ENABLE(emit_ctor_dtor,
+       AS_HELP_STRING([--enable-emit-ctor-dtor], [manually create ctor/dtor list]),
+       [ emit_ctor_dtor=$enableval ],
+       [ emit_ctor_dtor=no ]
+)
+
 AC_CANONICAL_HOST
 AC_CANONICAL_TARGET
 
@@ -135,6 +141,13 @@ Run configure again specifying these options:
 ])
 fi
 
+SYMBOL_PREFIX=
+case $target in
+       bfin*)
+               SYMBOL_PREFIX=_
+               ;;
+esac
+
 dnl Make sure we resolve system symbols before libiberty/libbfd ones.
 dnl Otherwise, things like getopt get screwed up because the system headers
 dnl redirect some functions to the system symbols, but other local symbols
@@ -166,6 +179,8 @@ AC_SUBST(zlib_include_dir)
 AC_SUBST(binutils_ldscript_dir)
 AC_SUBST(got_check)
 AC_SUBST(emit_relocs)
+AC_SUBST(emit_ctor_dtor)
+AC_SUBST(SYMBOL_PREFIX)
 
-AC_OUTPUT(Makefile ld-elf2flt)
+AC_OUTPUT(Makefile ld-elf2flt elf2flt.ld)