Changeset 3110 for trunk/test/gen_libmy_static.sh
- Timestamp:
- Nov 10, 2013, 12:42:16 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/test/gen_libmy_static.sh
r3041 r3110 26 26 cd $test_dir 27 27 28 # redefine so we can call check_requir mentwithout exit28 # redefine so we can call check_requirements without exit 29 29 exit_skip () 30 30 { … … 32 32 } 33 33 34 required=" autoconf automakestatic"34 required="static" 35 35 check_requirements > stdout 2> stderr 36 36 37 # if requir ments are misssing we just create an empty dummy file (to37 # if requirements are misssing we just create an empty dummy file (to 38 38 # avoid triggering the make target over and over again) 39 39 if test x$req_failed = xyes; then … … 43 43 fi 44 44 45 cat > configure.ac <<EOF 46 AC_INIT([foo], [1]) 47 AM_INIT_AUTOMAKE([foreign]) 48 AC_PROG_CXX 49 AC_PROG_RANLIB 50 AC_CONFIG_FILES([Makefile]) 51 AC_OUTPUT 52 EOF 45 # include to get variable $old_library 46 . $abs_top_builddir/yat/libyat.la 47 test x"${old_library}" != x"" || exit 1 53 48 54 cat > Makefile.am <<EOF 55 lib_LIBRARIES = libmy-static.a 56 libmy_static_a_SOURCES = foo.cc 57 EOF 58 59 cat > foo.cc <<EOF 60 int foo_static(void) { return 0; } 61 EOF 62 63 verbose= 64 bootstrap 65 ./configure --prefix=$abs_top_builddir/test || exit 1 66 67 unset MAKEFLAGS 68 make install V=0 || exit 1 49 cp $abs_top_builddir/yat/${lt_cv_objdir}/${old_library} \ 50 $abs_top_builddir/test/lib/libmy-static.a 69 51 exit 0
Note: See TracChangeset
for help on using the changeset viewer.