Browse Source

curl: fix noMMU build

Waldemar Brodkorb 6 days ago
parent
commit
6671992253
1 changed files with 6 additions and 2 deletions
  1. 6 2
      package/curl/Makefile

+ 6 - 2
package/curl/Makefile

@@ -71,8 +71,12 @@ CONFIGURE_ARGS+=	--without-ssl \
 			--without-wolfssl
 			--without-wolfssl
 endif
 endif
 
 
-CONFIGURE_ENV+=		curl_typeof_curl_socklen_t=socklen_t \
-			LDFLAGS='$(TARGET_LDFLAGS) -latomic'
+ifeq ($(ADK_TARGET_WITH_MMU),y)
+CONFIGURE_ENV+= 	LIBS="-latomic"
+endif
+
+CONFIGURE_ENV+=		curl_typeof_curl_socklen_t=socklen_t
+
 CONFIGURE_ARGS+=	--enable-cookies \
 CONFIGURE_ARGS+=	--enable-cookies \
 			--enable-file \
 			--enable-file \
 			--enable-ftp \
 			--enable-ftp \