Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Yousong Zhou
On 5 August 2015 at 21:03, Baptiste Clenet wrote: > 2015-08-05 14:58 GMT+02:00 Yousong Zhou : >> On 5 August 2015 at 16:09, Baptiste Clenet wrote: >>> >>> define Build/Compile >>> $(MAKE) -C $(PKG_BUILD_DIR) \ >>> $(TARGET_CONFIGURE_OPTS) \ >>> CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \ >>> C

Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Baptiste Clenet
2015-08-05 14:58 GMT+02:00 Yousong Zhou : > On 5 August 2015 at 16:09, Baptiste Clenet wrote: >> >> define Build/Compile >> $(MAKE) -C $(PKG_BUILD_DIR) \ >> $(TARGET_CONFIGURE_OPTS) \ >> CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \ >> CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PKG_BUILD_DIR)" \ >> LDFLAGS

Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Yousong Zhou
On 5 August 2015 at 16:09, Baptiste Clenet wrote: > > define Build/Compile > $(MAKE) -C $(PKG_BUILD_DIR) \ > $(TARGET_CONFIGURE_OPTS) \ > CFLAGS="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)" \ > CPPFLAGS="$(TARGET_CPPFLAGS) -I$(PKG_BUILD_DIR)" \ > LDFLAGS="$(TARGET_LDFLAGS) -L$(PKG_BUILD_DIR) -lcoap" > en

Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Yousong Zhou
On 5 August 2015 at 19:43, Baptiste Clenet wrote: >> - You can check for WITH_POSIX (or other CFLAGS etc. in config.log > Check it and it is defined. >> - configure always sets -DWITH_POSIX in CPPFLAGS (see configure.in) > Yes, it is set also. > > Don't know where the problem comes from. It works

Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Baptiste Clenet
2015-08-05 12:57 GMT+02:00 Dirk Neukirchen : > On 05.08.2015 10:09, Baptiste Clenet wrote: >> Hi, >> >> I'm trying to add a package for libcoap and then compile it with my >> target Ralink MT7628. >> >> Here is the Makefile: >> # > >> >> coap_address_t is defined in address.h inside some #ifdef (#i

Re: [OpenWrt-Devel] package libcoap for OpenWRT, Makefile

2015-08-05 Thread Dirk Neukirchen
On 05.08.2015 10:09, Baptiste Clenet wrote: > Hi, > > I'm trying to add a package for libcoap and then compile it with my > target Ralink MT7628. > > Here is the Makefile: > # > > coap_address_t is defined in address.h inside some #ifdef (#ifdef > WITH_LWIP or #ifdef WITH_CONTIKI or #ifdef WITH