X-Git-Url: http://git.openwrt.org/?p=openwrt%2Fsvn-archive%2Farchive.git;a=blobdiff_plain;f=libs%2Flibmad%2FMakefile;h=f4169f74d306cfbca49853e716f6206a3fbbd515;hp=79cb315578f18d81976f0eea26816cd59dae52b9;hb=5da9184fbb35cd435e7d7544ffdf26cef78f1989;hpb=b689ac3d343518eab7e86001d8fb379b3749ce56 diff --git a/libs/libmad/Makefile b/libs/libmad/Makefile index 79cb315578..f4169f74d3 100644 --- a/libs/libmad/Makefile +++ b/libs/libmad/Makefile @@ -48,15 +48,22 @@ endef TARGET_CFLAGS += $(FPIC) -define Build/Configure - $(call Build/Configure/Default, \ - --enable-shared \ - --enable-static \ - --enable-fpm="$(FPM)" \ - --disable-debugging \ - --enable-speed \ - ) -endef +CONFIGURE_ARGS+= \ + --enable-shared \ + --enable-static \ + --enable-fpm="$(FPM)" \ + --disable-debugging \ + --enable-speed \ + +# XXX: configure is parsing and "optimizing" CFLAGS, adding unsupported +# XXX: compiler args to it (like -fforce-mem) +# XXX: so pass an empty one to configure +CONFIGURE_VARS+= \ + CFLAGS="" \ + +# XXX: and pass our own to make +MAKE_FLAGS+= \ + CFLAGS="$(TARGET_CFLAGS)" \ define Build/InstallDev $(INSTALL_DIR) $(1)/usr/include