Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | SUMMARY = "A server-side, HTML-embedded scripting language" |
| 2 | HOMEPAGE = "http://www.php.net" |
| 3 | SECTION = "console/network" |
| 4 | |
| 5 | LICENSE = "PHP-3.0" |
| 6 | |
| 7 | BBCLASSEXTEND = "native" |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 8 | DEPENDS = "zlib bzip2 libxml2 virtual/libiconv php-native lemon-native" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 9 | DEPENDS_class-native = "zlib-native libxml2-native" |
| 10 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 11 | PHP_MAJOR_VERSION = "${@d.getVar('PV').split('.')[0]}" |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 12 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | SRC_URI = "http://php.net/distributions/php-${PV}.tar.bz2 \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 14 | file://0001-php-don-t-use-broken-wrapper-for-mkdir.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 15 | " |
| 16 | |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 17 | SRC_URI_append_class-target = " \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 18 | file://iconv.patch \ |
| 19 | file://imap-fix-autofoo.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | file://php_exec_native.patch \ |
| 21 | file://php-fpm.conf \ |
| 22 | file://php-fpm-apache.conf \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 23 | file://70_mod_php${PHP_MAJOR_VERSION}.conf \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 24 | file://php-fpm.service \ |
| 25 | " |
| 26 | S = "${WORKDIR}/php-${PV}" |
| 27 | |
| 28 | inherit autotools pkgconfig pythonnative gettext |
| 29 | |
| 30 | # phpize is not scanned for absolute paths by default (but php-config is). |
| 31 | # |
| 32 | SSTATE_SCAN_FILES += "phpize" |
| 33 | SSTATE_SCAN_FILES += "build-defs.h" |
| 34 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 35 | PHP_LIBDIR = "${libdir}/php${PHP_MAJOR_VERSION}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 36 | |
| 37 | # Common EXTRA_OECONF |
| 38 | COMMON_EXTRA_OECONF = "--enable-sockets \ |
| 39 | --enable-pcntl \ |
| 40 | --enable-shared \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 41 | --disable-rpath \ |
| 42 | --with-pic \ |
| 43 | --libdir=${PHP_LIBDIR} \ |
| 44 | " |
| 45 | EXTRA_OECONF = "--enable-mbstring \ |
| 46 | --enable-wddx \ |
| 47 | --enable-fpm \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 48 | --with-libdir=${baselib} \ |
| 49 | --with-gettext=${STAGING_LIBDIR}/.. \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 50 | --with-libzip=${STAGING_LIBDIR}/.. \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 51 | --with-iconv=${STAGING_LIBDIR}/.. \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 52 | --with-bz2=${STAGING_DIR_TARGET}${exec_prefix} \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 53 | --with-config-file-path=${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 54 | ${@oe.utils.conditional('SITEINFO_ENDIANNESS', 'le', 'ac_cv_c_bigendian_php=no', 'ac_cv_c_bigendian_php=yes', d)} \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 55 | ${@bb.utils.contains('PACKAGECONFIG', 'pam', '', 'ac_cv_lib_pam_pam_start=no', d)} \ |
| 56 | ${COMMON_EXTRA_OECONF} \ |
| 57 | " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 58 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 59 | CACHED_CONFIGUREVARS += "ac_cv_func_dlopen=no ac_cv_lib_dl_dlopen=yes" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 60 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 61 | EXTRA_OECONF_class-native = " \ |
| 62 | --with-zlib=${STAGING_LIBDIR_NATIVE}/.. \ |
| 63 | --without-iconv \ |
| 64 | ${COMMON_EXTRA_OECONF} \ |
| 65 | " |
| 66 | |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 67 | PACKAGECONFIG ??= "mysql sqlite3 imap opcache openssl \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 68 | ${@bb.utils.filter('DISTRO_FEATURES', 'ipv6 pam', d)} \ |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 69 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 70 | PACKAGECONFIG_class-native = "" |
| 71 | |
| 72 | PACKAGECONFIG[mysql] = "--with-mysql=${STAGING_DIR_TARGET}${prefix} \ |
| 73 | --with-mysqli=${STAGING_BINDIR_CROSS}/mysql_config \ |
| 74 | --with-pdo-mysql=${STAGING_BINDIR_CROSS}/mysql_config \ |
| 75 | ,--without-mysql --without-mysqli --without-pdo-mysql \ |
| 76 | ,mysql5" |
| 77 | |
| 78 | PACKAGECONFIG[sqlite3] = "--with-sqlite3=${STAGING_LIBDIR}/.. \ |
| 79 | --with-pdo-sqlite=${STAGING_LIBDIR}/.. \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 80 | ,--without-sqlite3 --without-pdo-sqlite \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 81 | ,sqlite3" |
| 82 | PACKAGECONFIG[pgsql] = "--with-pgsql=${STAGING_DIR_TARGET}${exec_prefix},--without-pgsql,postgresql" |
| 83 | PACKAGECONFIG[soap] = "--enable-libxml --enable-soap, --disable-soap, libxml2" |
| 84 | PACKAGECONFIG[apache2] = "--with-apxs2=${STAGING_BINDIR_CROSS}/apxs,,apache2-native apache2" |
| 85 | PACKAGECONFIG[pam] = ",,libpam" |
| 86 | PACKAGECONFIG[imap] = "--with-imap=${STAGING_DIR_HOST} \ |
| 87 | --with-imap-ssl=${STAGING_DIR_HOST} \ |
| 88 | ,--without-imap --without-imap-ssl \ |
| 89 | ,uw-imap" |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 90 | PACKAGECONFIG[ipv6] = "--enable-ipv6,--disable-ipv6," |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 91 | PACKAGECONFIG[opcache] = "--enable-opcache,--disable-opcache" |
| 92 | PACKAGECONFIG[openssl] = "--with-openssl,--without-openssl,openssl" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 93 | |
| 94 | export PHP_NATIVE_DIR = "${STAGING_BINDIR_NATIVE}" |
| 95 | export PHP_PEAR_PHP_BIN = "${STAGING_BINDIR_NATIVE}/php" |
| 96 | CFLAGS += " -D_GNU_SOURCE -g -DPTYS_ARE_GETPT -DPTYS_ARE_SEARCHED -I${STAGING_INCDIR}/apache2" |
| 97 | CFLAGS_append_aarch64 = " -O2" |
| 98 | |
| 99 | EXTRA_OEMAKE = "INSTALL_ROOT=${D}" |
| 100 | |
| 101 | acpaths = "" |
| 102 | |
| 103 | do_configure_prepend () { |
| 104 | rm -f ${S}/build/libtool.m4 ${S}/ltmain.sh ${S}/aclocal.m4 |
| 105 | find ${S} -name config.m4 | xargs -n1 sed -i 's!APXS_HTTPD=.*!APXS_HTTPD=${STAGING_BINDIR_NATIVE}/httpd!' |
| 106 | } |
| 107 | |
| 108 | do_configure_append() { |
| 109 | # No, libtool, we really don't want rpath set... |
| 110 | sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' ${HOST_SYS}-libtool |
| 111 | sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' ${HOST_SYS}-libtool |
| 112 | } |
| 113 | |
| 114 | do_install_append_class-native() { |
| 115 | rm -rf ${D}/${PHP_LIBDIR}/php/.registry |
| 116 | rm -rf ${D}/${PHP_LIBDIR}/php/.channels |
| 117 | rm -rf ${D}/${PHP_LIBDIR}/php/.[a-z]* |
| 118 | } |
| 119 | |
| 120 | do_install_prepend() { |
Patrick Williams | ddad1a1 | 2017-02-23 20:36:32 -0600 | [diff] [blame] | 121 | cat ${ACLOCALDIR}/libtool.m4 ${ACLOCALDIR}/lt~obsolete.m4 ${ACLOCALDIR}/ltoptions.m4 \ |
| 122 | ${ACLOCALDIR}/ltsugar.m4 ${ACLOCALDIR}/ltversion.m4 > ${S}/build/libtool.m4 |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 123 | } |
| 124 | |
| 125 | do_install_prepend_class-target() { |
| 126 | if ${@bb.utils.contains('PACKAGECONFIG', 'apache2', 'true', 'false', d)}; then |
| 127 | # Install dummy config file so apxs doesn't fail |
| 128 | install -d ${D}${sysconfdir}/apache2 |
| 129 | printf "\nLoadModule dummy_module modules/mod_dummy.so\n" > ${D}${sysconfdir}/apache2/httpd.conf |
| 130 | fi |
| 131 | } |
| 132 | |
| 133 | # fixme |
| 134 | do_install_append_class-target() { |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 135 | install -d ${D}${sysconfdir}/ |
| 136 | if [ -d ${RECIPE_SYSROOT_NATIVE}${sysconfdir} ];then |
| 137 | install -m 0644 ${RECIPE_SYSROOT_NATIVE}${sysconfdir}/pear.conf ${D}${sysconfdir}/ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 138 | fi |
| 139 | rm -rf ${D}/${TMPDIR} |
| 140 | rm -rf ${D}/.registry |
| 141 | rm -rf ${D}/.channels |
| 142 | rm -rf ${D}/.[a-z]* |
| 143 | rm -rf ${D}/var |
| 144 | rm -f ${D}/${sysconfdir}/php-fpm.conf.default |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 145 | sed -i 's:${STAGING_DIR_NATIVE}::g' ${D}${sysconfdir}/pear.conf |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 146 | install -m 0644 ${WORKDIR}/php-fpm.conf ${D}/${sysconfdir}/php-fpm.conf |
| 147 | install -d ${D}/${sysconfdir}/apache2/conf.d |
| 148 | install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf |
| 149 | install -d ${D}${sysconfdir}/init.d |
| 150 | sed -i 's:=/usr/sbin:=${sbindir}:g' ${B}/sapi/fpm/init.d.php-fpm |
| 151 | sed -i 's:=/etc:=${sysconfdir}:g' ${B}/sapi/fpm/init.d.php-fpm |
| 152 | sed -i 's:=/var:=${localstatedir}:g' ${B}/sapi/fpm/init.d.php-fpm |
| 153 | install -m 0755 ${B}/sapi/fpm/init.d.php-fpm ${D}${sysconfdir}/init.d/php-fpm |
| 154 | install -m 0644 ${WORKDIR}/php-fpm-apache.conf ${D}/${sysconfdir}/apache2/conf.d/php-fpm.conf |
| 155 | |
| 156 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)};then |
| 157 | install -d ${D}${systemd_unitdir}/system |
| 158 | install -m 0644 ${WORKDIR}/php-fpm.service ${D}${systemd_unitdir}/system/ |
| 159 | sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \ |
| 160 | -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ |
| 161 | ${D}${systemd_unitdir}/system/php-fpm.service |
| 162 | fi |
| 163 | |
| 164 | TMP=`dirname ${D}/${TMPDIR}` |
| 165 | while test ${TMP} != ${D}; do |
| 166 | if [ -d ${TMP} ]; then |
| 167 | rmdir ${TMP} |
| 168 | fi |
| 169 | TMP=`dirname ${TMP}`; |
| 170 | done |
| 171 | |
| 172 | if ${@bb.utils.contains('PACKAGECONFIG', 'apache2', 'true', 'false', d)}; then |
| 173 | install -d ${D}${libdir}/apache2/modules |
| 174 | install -d ${D}${sysconfdir}/apache2/modules.d |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 175 | install -d ${D}${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION} |
| 176 | install -m 755 libs/libphp${PHP_MAJOR_VERSION}.so ${D}${libdir}/apache2/modules |
| 177 | install -m 644 ${WORKDIR}/70_mod_php${PHP_MAJOR_VERSION}.conf ${D}${sysconfdir}/apache2/modules.d |
| 178 | sed -i s,lib/,${libdir}/, ${D}${sysconfdir}/apache2/modules.d/70_mod_php${PHP_MAJOR_VERSION}.conf |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 179 | cat ${S}/php.ini-production | \ |
| 180 | sed -e 's,extension_dir = \"\./\",extension_dir = \"/usr/lib/extensions\",' \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 181 | > ${D}${sysconfdir}/php/apache2-php${PHP_MAJOR_VERSION}/php.ini |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 182 | rm -f ${D}${sysconfdir}/apache2/httpd.conf* |
| 183 | fi |
| 184 | } |
| 185 | |
| 186 | SYSROOT_PREPROCESS_FUNCS += "php_sysroot_preprocess" |
| 187 | |
| 188 | php_sysroot_preprocess () { |
| 189 | install -d ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 190 | install -m 755 ${D}${bindir}/phpize ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 191 | install -m 755 ${D}${bindir}/php-config ${SYSROOT_DESTDIR}${bindir_crossscripts}/ |
| 192 | |
| 193 | sed -i 's!eval echo /!eval echo ${STAGING_DIR_HOST}/!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/phpize |
| 194 | sed -i 's!^include_dir=.*!include_dir=${STAGING_INCDIR}/php!' ${SYSROOT_DESTDIR}${bindir_crossscripts}/php-config |
| 195 | } |
| 196 | |
| 197 | MODPHP_PACKAGE = "${@bb.utils.contains('PACKAGECONFIG', 'apache2', '${PN}-modphp', '', d)}" |
| 198 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 199 | PACKAGES = "${PN}-dbg ${PN}-cli ${PN}-cgi ${PN}-fpm ${PN}-fpm-apache2 ${PN}-pear ${PN}-phar ${MODPHP_PACKAGE} ${PN}-dev ${PN}-staticdev ${PN}-doc ${PN}-opcache ${PN}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 200 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 201 | RDEPENDS_${PN} += "libgcc" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 202 | RDEPENDS_${PN}-pear = "${PN}" |
| 203 | RDEPENDS_${PN}-phar = "${PN}-cli" |
| 204 | RDEPENDS_${PN}-cli = "${PN}" |
| 205 | RDEPENDS_${PN}-modphp = "${PN} apache2" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 206 | RDEPENDS_${PN}-opcache = "${PN}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 207 | |
| 208 | INITSCRIPT_PACKAGES = "${PN}-fpm" |
| 209 | inherit update-rc.d |
| 210 | |
| 211 | FILES_${PN}-dbg =+ "${bindir}/.debug \ |
| 212 | ${libdir}/apache2/modules/.debug" |
| 213 | FILES_${PN}-doc += "${PHP_LIBDIR}/php/doc" |
| 214 | FILES_${PN}-cli = "${bindir}/php" |
| 215 | FILES_${PN}-phar = "${bindir}/phar*" |
| 216 | FILES_${PN}-cgi = "${bindir}/php-cgi" |
| 217 | FILES_${PN}-fpm = "${sbindir}/php-fpm ${sysconfdir}/php-fpm.conf ${datadir}/fpm ${sysconfdir}/init.d/php-fpm ${systemd_unitdir}/system/php-fpm.service" |
| 218 | FILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" |
| 219 | CONFFILES_${PN}-fpm = "${sysconfdir}/php-fpm.conf" |
| 220 | CONFFILES_${PN}-fpm-apache2 = "${sysconfdir}/apache2/conf.d/php-fpm.conf" |
| 221 | INITSCRIPT_NAME_${PN}-fpm = "php-fpm" |
| 222 | INITSCRIPT_PARAMS_${PN}-fpm = "defaults 60" |
| 223 | FILES_${PN}-pear = "${bindir}/pear* ${bindir}/pecl ${PHP_LIBDIR}/php/PEAR \ |
| 224 | ${PHP_LIBDIR}/php/PEAR*.php ${PHP_LIBDIR}/php/System.php \ |
| 225 | ${PHP_LIBDIR}/php/peclcmd.php ${PHP_LIBDIR}/php/pearcmd.php \ |
| 226 | ${PHP_LIBDIR}/php/.channels ${PHP_LIBDIR}/php/.channels/.alias \ |
| 227 | ${PHP_LIBDIR}/php/.registry ${PHP_LIBDIR}/php/Archive/Tar.php \ |
| 228 | ${PHP_LIBDIR}/php/Console/Getopt.php ${PHP_LIBDIR}/php/OS/Guess.php \ |
| 229 | ${PHP_LIBDIR}/php/data/PEAR \ |
| 230 | ${sysconfdir}/pear.conf" |
| 231 | FILES_${PN}-dev = "${includedir}/php ${PHP_LIBDIR}/build ${bindir}/phpize \ |
| 232 | ${bindir}/php-config ${PHP_LIBDIR}/php/.depdb \ |
| 233 | ${PHP_LIBDIR}/php/.depdblock ${PHP_LIBDIR}/php/.filemap \ |
| 234 | ${PHP_LIBDIR}/php/.lock ${PHP_LIBDIR}/php/test" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 235 | FILES_${PN}-staticdev += "${PHP_LIBDIR}/extensions/*/*.a" |
| 236 | FILES_${PN}-opcache = "${PHP_LIBDIR}/extensions/*/opcache${SOLIBSDEV}" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 237 | FILES_${PN} = "${PHP_LIBDIR}/php" |
| 238 | FILES_${PN} += "${bindir}" |
| 239 | |
| 240 | SUMMARY_${PN}-modphp = "PHP module for the Apache HTTP server" |
| 241 | FILES_${PN}-modphp = "${libdir}/apache2 ${sysconfdir}" |
| 242 | |
| 243 | MODPHP_OLDPACKAGE = "${@bb.utils.contains('PACKAGECONFIG', 'apache2', 'modphp', '', d)}" |
| 244 | RPROVIDES_${PN}-modphp = "${MODPHP_OLDPACKAGE}" |
| 245 | RREPLACES_${PN}-modphp = "${MODPHP_OLDPACKAGE}" |
| 246 | RCONFLICTS_${PN}-modphp = "${MODPHP_OLDPACKAGE}" |
| 247 | |
| 248 | do_install_append_class-native() { |
| 249 | create_wrapper ${D}${bindir}/php \ |
| 250 | PHP_PEAR_SYSCONF_DIR=${sysconfdir}/ |
| 251 | } |
| 252 | |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 253 | |
| 254 | # Fails to build with thumb-1 (qemuarm) |
| 255 | # | {standard input}: Assembler messages: |
| 256 | # | {standard input}:3719: Error: selected processor does not support Thumb mode `smull r0,r2,r9,r3' |
| 257 | # | {standard input}:3720: Error: unshifted register required -- `sub r2,r2,r0,asr#31' |
| 258 | # | {standard input}:3796: Error: selected processor does not support Thumb mode `smull r0,r2,r3,r3' |
| 259 | # | {standard input}:3797: Error: unshifted register required -- `sub r2,r2,r0,asr#31' |
| 260 | # | make: *** [ext/standard/math.lo] Error 1 |
| 261 | ARM_INSTRUCTION_SET = "arm" |