]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
fix for cygwin build
authorBVK Chaitanya <bvk.groups@gmail.com>
Fri, 4 Jun 2010 11:18:42 +0000 (16:48 +0530)
committerBVK Chaitanya <bvk.groups@gmail.com>
Fri, 4 Jun 2010 11:18:42 +0000 (16:48 +0530)
configure.ac
configure.common
grub-core/Makefile.am
grub-core/configure.ac

index dfbc6b8be983a42883790f821732547a14860534..9ea1486b7d13a429415cd9e231a6ccfbdc596ad1 100644 (file)
@@ -42,11 +42,11 @@ AC_PREREQ(2.60)
 AC_CONFIG_SRCDIR([grub-core/include/grub/dl.h])
 AC_CONFIG_HEADER([config.h])
 
-m4_include([configure.common])
-
 grub_coredir='grub-core'
 AC_SUBST(grub_coredir)
 
+m4_include([configure.common])
+
 # Output files.
 AC_CONFIG_FILES([Makefile])
 AC_CONFIG_FILES([po/Makefile])
index 815c76c536215b588db77005746e1dcaf250a593..ac3c4edd44ca0e1a74bed3097a939cc52c69a06e 100644 (file)
@@ -356,10 +356,10 @@ if test x$grub_cv_apple_target_cc = xyes ; then
 else
   TARGET_APPLE_CC=0
 # Use linker script if present, otherwise use builtin -N script.
-if test -f "${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
-  TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
+if test -f "${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"; then
+  TARGET_IMG_LDSCRIPT='$(top_srcdir)'"/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc"
   TARGET_IMG_LDFLAGS="-Wl,-T${TARGET_IMG_LDSCRIPT}  -Wl,-Ttext,"
-  TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc  -Wl,-Ttext,"
+  TARGET_IMG_LDFLAGS_AC="-Wl,-T${srcdir}/${grub_coredir}/conf/${target_cpu}-${platform}-${host_os}-img-ld.sc  -Wl,-Ttext,"
 else
   TARGET_IMG_LDSCRIPT=
   TARGET_IMG_LDFLAGS='-Wl,-N  -Wl,-Ttext,'
index 61a69fca6b94eb5cc8594d6bc668444672a29501..85433431d6b421f41f260b8976fb9ff6e5399460 100644 (file)
@@ -6,6 +6,7 @@ EXTRA_DIST = gentpl.py modules.def Makefile.tpl genmoddep.awk
 EXTRA_DIST += genmodsrc.sh gensymlist.sh genemuinit.sh genemuinitheader.sh
 EXTRA_DIST += genfslist.sh gencmdlist.sh genvideolist.sh genhandlerlist.sh
 EXTRA_DIST += genpartmaplist.sh genparttoollist.sh genterminallist.sh
+EXTRA_DIST += conf/i386-pc-cygwin-img-ld.sc
 EXTRA_DIST += $(shell find $(top_srcdir) -name '*.h')
 
 include $(top_srcdir)/Makefile.vars
index 6cac2e75c141e6c98a2b753d25fe05f58c9a78bb..8d7d760ac74612de7fc86928cdb885e450d42407 100644 (file)
@@ -42,15 +42,15 @@ AC_PREREQ(2.60)
 AC_CONFIG_SRCDIR([include/grub/dl.h])
 AC_CONFIG_HEADER([config.h])
 
+grub_coredir='.'
+AC_SUBST(grub_coredir)
+
 m4_include([configure.common])
 
 CC=$TARGET_CC
 CPP=$TARGET_CC
 CCAS=$TARGET_CC
 
-grub_coredir='.'
-AC_SUBST(grub_coredir)
-
 # Output files.
 grub_CHECK_LINK_DIR
 if test x"$link_dir" = xyes ; then