package/config: cygwin fix
- pass HOST_LOADLIBES down to make mconf for cygwin - fix link-order WRT HOST_LOADLIBES From Bernhards tree (91018d95)
This commit is contained in:
parent
15d53f0d1b
commit
2c2796719a
2
Makefile
2
Makefile
@ -170,6 +170,8 @@ ifneq ($(findstring cygwin,$(BR2_GNU_BUILD_SUFFIX)),)
|
|||||||
HOST_EXEEXT:=.exe
|
HOST_EXEEXT:=.exe
|
||||||
HOST_LIBEXT:=.lib
|
HOST_LIBEXT:=.lib
|
||||||
HOST_SHREXT:=.dll
|
HOST_SHREXT:=.dll
|
||||||
|
HOST_LOADLIBES="-lcurses -lintl"
|
||||||
|
export HOST_LOADLIBES
|
||||||
endif
|
endif
|
||||||
ifneq ($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),)
|
ifneq ($(findstring mingw,$(BR2_GNU_BUILD_SUFFIX)),)
|
||||||
HOST_EXEEXT:=.exe
|
HOST_EXEEXT:=.exe
|
||||||
|
@ -17,10 +17,10 @@ host-cmulti := $(foreach m,$(__hostprogs),\
|
|||||||
host-cobjs := $(sort $(foreach m,$(__hostprogs),$($(m)-objs)))
|
host-cobjs := $(sort $(foreach m,$(__hostprogs),$($(m)-objs)))
|
||||||
|
|
||||||
$(host-csingle): %: %.c
|
$(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)
|
$(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
|
$(host-cobjs): %.o: %.c
|
||||||
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@
|
$(HOSTCC) $(HOST_EXTRACFLAGS) $(HOSTCFLAGS) $(HOSTCFLAGS_$@) -c $< -o $@
|
||||||
|
Loading…
Reference in New Issue
Block a user