samba: predefine a autoconf result for enums with negative values
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Fri, 5 Dec 2008 14:46:56 +0000 (14:46 -0000)
committerHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Fri, 5 Dec 2008 14:46:56 +0000 (14:46 -0000)
The configure script tries to find out if enums can be negative, this is not
supported when cross compiling, since it tries to run the binary. This commit
sets the test to yes, i.e. negative enums are possible.

package/samba/samba.mk

index 564ebae056c89cbb7f56c97937e5a8cfa24501d1..b9f0a9a9b8fe6e2d52133bb34ff7355dcdac0633 100644 (file)
@@ -33,6 +33,7 @@ $(SAMBA_DIR)/.configured: $(SAMBA_DIR)/.unpacked
                samba_cv_HAVE_FCNTL_LOCK=yes \
                samba_cv_HAVE_SECURE_MKSTEMP=yes \
                samba_cv_fpie=no \
+               SMB_BUILD_CC_NEGATIVE_ENUM_VALUES=yes \
                ./configure \
                --target=$(GNU_TARGET_NAME) \
                --host=$(GNU_TARGET_NAME) \