package/config: cygwin fix
authorPeter Korsgaard <jacmet@sunsite.dk>
Thu, 19 Jun 2008 08:11:35 +0000 (08:11 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 19 Jun 2008 08:11:35 +0000 (08:11 -0000)
- pass HOST_LOADLIBES down to make mconf for cygwin
- fix link-order WRT HOST_LOADLIBES

From Bernhards tree (91018d95)

Makefile
package/config/Makefile

index caabd690cf7bb8c73386a3a888f9a508140c1fca..73d92088afb64ff1afd6553c89fd16150da493a3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -170,6 +170,8 @@ ifneq ($(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX)),)
 HOST_EXEEXT:=.exe
 HOST_LIBEXT:=.lib
 HOST_SHREXT:=.dll
+HOST_LOADLIBES="-lcurses -lintl"
+export HOST_LOADLIBES
 endif
 ifneq ($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),)
 HOST_EXEEXT:=.exe
index beed4584aaef39d58aa4b118acf56e6d4a910943..3af4bd8de6e9b8dcd5516667173068d7c710c931 100644 (file)
@@ -17,10 +17,10 @@ host-cmulti := $(foreach m,$(__hostprogs),\
 host-cobjs := $(sort $(foreach m,$(__hostprogs),$($(m)-objs)))
 
 $(host-csingle): %: %.c
-       $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $< -o $@
+       $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $< $(HOST_LOADLIBES) -o $@
 
 $(host-cmulti): %: $(host-cobjs) $(host-cshlib)
-       $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $(HOST_LOADLIBES) $($@-objs) -o $@
+       $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) $($@-objs) $(HOST_LOADLIBES) -o $@
 
 $(host-cobjs): %.o: %.c
        $(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@