summaryrefslogtreecommitdiff
path: root/Configure
Commit message (Collapse)AuthorAgeFilesLines
* Protect against ptrdiff_t not being available.Brian Fraser2014-06-131-0/+21
| | | | | This is primarily for pedantic builds; ptrdiff_t is now standard, and had already been in use in the core without guards.
* Removed NeXT supportBrian Fraser2014-06-111-50/+2
|
* [perl #121585] Configure shouldn't write source treeH.Merijn Brand2014-06-111-6/+6
|
* Fix cbacktraceH.Merijn Brand2014-06-111-20/+24
|
* Fix i_bfdH.Merijn Brand2014-06-111-18/+18
| | | | | | | The final i_bfd statement was a wrong copy-paste re-order Configure: in preparation of backporting this change and integration of another, some reorder is required
* Add C backtrace API.Jarkko Hietaniemi2014-06-071-0/+40
| | | | | | | | Useful for at least debugging. Supported in Linux and OS X (possibly to some extent in *BSD). See perlhacktips for details.
* Probe for working wcscmp and wcsxfrmH.Merijn Brand2014-06-051-0/+61
|
* evat => eval as found by Tom HukinsH.Merijn Brand2014-06-041-5/+5
|
* remove BOOTSTRAP_CHARSET from Configure (khw's request)H.Merijn Brand2014-06-011-36/+29
|
* Get rid of "grep empty(sub)expression" noise.Jarkko Hietaniemi2014-05-291-1/+1
| | | | | | | | | | | | | In OS X (and assumedly *BSD) Configure output starts with: grep empty(sub)expression apparently because plain 'grep' understands the 'os\(/\|\)2' somewhat differently (BRE vs ERE, RTFM re_format(7)) Cure: redirect the stderr of grep to stdout (which is then promptly redirected to /dev/null). The grep will still fail, and not take the OS/2 (or DJGPP) branch.
* -fwrapv is broken prior to gcc-4.3 (googled and patched by Zefram)H.Merijn Brand2014-04-091-2/+2
|
* gcc 4.9 by default does some optimizations that break perl (#121505)H.Merijn Brand2014-04-091-1/+17
| | | | Patch by Tony Cook
* Configure misdetects strlcpy et al. with gcc -flto (RT#113022)H.Merijn Brand2014-03-161-3/+3
|
* Backport/genererate work from cross-portH.Merijn Brand2014-03-121-20/+24
| | | | | | | | | | At the "Perl5 and beyond" hackathon early feb 2014 in Amsterdam, hugmeir and I walked through all the changes and ended up with a serious warning in metalint where we stopped. The warning proved to be a bug in metalint that will be fixed in the future and has a rather easy workaround. Porting/Glossary is not yet being generated correctly. Will take care of that later.
* Configure: use $undef, not plain undefBrian Fraser2014-01-301-2/+2
|
* Configure: Added a targetenv variableBrian Fraser2014-01-301-0/+2
| | | | | Currently this is only used during make test, and allows setting the environment of the target before running tests.
* Configure, Solaris hints: Allow cross-compiling to Solaris.Brian Fraser2014-01-301-1/+17
| | | | | | This only required some minor changes to the Solaris hints, and adding a few lines for Solaris in the part of Configure that handles setting osname and osvers when cross-compiling.
* Configure, qnx hints: Improve the cross-compilation support for QNXBrian Fraser2014-01-301-1/+2
| | | | | Now, like with Android and plain Linux, cross-compiling to QNX (which includes newer Blackberry devices) will load hints/qnx.sh.
* Configure: Fix the fflush(NULL) test in cross buildsBrian Fraser2014-01-261-2/+4
| | | | | | Second attempt at this. This is less portable than the previous version, since it assumes that the target system will have a cat, but unlike the previous version this now actually works.
* Configure: If cross-compiling to linux, pick the proper hints fileBrian Fraser2014-01-261-0/+5
| | | | | | Something like arm-linux-gnueabihf -- which is what the raspberry pi gets as its targetarch -- is really just plain Linux, so set osname to that and load up the hints file.
* Configure: added special osname checks for nto and androidBrian Fraser2014-01-261-1/+13
| | | | | | | | | | | When cross-compiling, for android, anything matching *linux-android* gets osname=linux-androideabi. This is to allow compiling to all three android variants (x86, arm, mips). For QNX Neutrino, anything matching nto*|*-nto-* gets osname=nto. In the future, that might change to 'qnx', but right now we don't want it to pick up the hints file. For anything else, keep the current behavior, which is to set osname to the output of `echo $targetarch|sed 's,^[^-]*-,,'`
* Configure, Android hints: Changes to allow native buildsBrian Fraser2014-01-261-0/+1
|
* Make compiling with adb work againBrian Fraser2014-01-261-0/+3
|
* Separate SH used to run Configure from SH used on target systemJess Robinson2014-01-231-0/+6
| | | | | | | This is because, for example, on the host system, sh might be /bin/sh, but on the target system, it's /system/bin/sh. The new variable is "targetsh" and defaults to "sh" unless changed by the hints file/Configure params.
* Configure: add missing ; to checkccflagsBrian Fraser2014-01-231-1/+1
|
* Configure, Makefile.SH: Allow running generate_uudmap in the targetBrian Fraser2014-01-221-3/+8
| | | | | | | | | | | | | | | | This is a bit of a step backwards, but we want to run this in the target platform when cross-compiling to some unusual setups, like ASCII -> EBCDIC. What this branch introduces is a third "path" for generate_uudmap: * If we are doing a native build, just build it as usual and run it. * If we're cross-compiling, and either -Dhostgenerate was specified OR if it was left empty, which is the default case, then create a host generate_uudmap and run it locally * Finally, if are cross-compiling and were built with -Uhostgenerate, then build generate_uudmap for the target and run it there, bringing back the resulting headers.
* Configure: Minor improvements to the building on the host miniperlBrian Fraser2014-01-221-7/+9
|
* Configure: When cross-compiling, save the $^O of the hostBrian Fraser2014-01-221-0/+3
|
* Configure: Silence $to warnings when cross-compilingBrian Fraser2014-01-221-1/+1
|
* Configure, run-ssh: No need to use ./\$exeBrian Fraser2014-01-221-1/+1
| | | | | | | | | | | | Previous, if run-ssh was passed ./TEST, it would've ended up running ././TEST in the target system. Similarly, if you passed 'uname', it would've tried running ./uname, which would've failed spectacularly. This commit changes run-ssh so that it won't add the extra './'; this means that shell builtins can be run in the target system. While this is not generally portable, it's useful in specific situations, such as in the hints files.
* Configure: Teach run-ssh to handle -envBrian Fraser2014-01-221-1/+9
|
* Configure: Pass the -r flag to scp when cross-compilingBrian Fraser2014-01-221-2/+2
|
* Build host miniperl and generate_uudmap binaries when cross compiling, for ↵Jess Robinson2014-01-221-0/+18
| | | | local use
* fix the ability to use targethost when defined.Neil Williams2014-01-221-3/+3
|
* add an escape for when targethost is not defined but usecrosscompile is.Neil Williams2014-01-221-1/+14
| | | | | See http://www.nntp.perl.org/group/perl.perl5.porters/2012/12/msg196443.html "Cross-building and Makefile.SH", which explains the reasoning for this.
* Configure: Set to/from/run scripts if targethost is passedJess Robinson2014-01-221-2/+7
| | | | Do this regardless of whether we are cross compiling
* Configure: Split the usecrosscompile section from the to/from/run sectionJess Robinson2014-01-221-0/+9
| | | | | | | Beyond organization, this also makes sure that usecrosscompile is always set to undef if we're not cross-compiling, which enables code to realibly use $Config{usecrosscompile} to check for a cross-compiling perl.
* Regenerate from meta after backporting crosscompile changesH.Merijn Brand2014-01-221-495/+500
| | | | | I am sure there are items that could have been processed even cleaner, but with the current state, the content is functional equal.
* Add missing $run prefix to some Configure testsJess Robinson2014-01-171-1/+1
|
* Introduce $targetport to allow running on a non-standard ssh portJess Robinson2014-01-171-5/+13
| | | | | Such as when using user networking on qemu and redirecting a local port to the emulator ssh
* Store the targetdir, targethost from Configure in config.sh for later.Jess Robinson2014-01-171-0/+4
|
* Configure: Remove "was file copied" check using run-sshJess Robinson2014-01-171-4/+0
| | | | This doesn't seem to be of much use.
* Configure: If using targetarch, the computed binaries should stickBrian Fraser2014-01-171-1/+12
|
* Configure: Don't skip the alignbytes test when crosscompilingBrian Fraser2014-01-171-42/+29
|
* Configure: Add $run to two testsBrian Fraser2014-01-171-2/+2
|
* Configure: use $sysroot, if available, in checkccflagsBrian Fraser2014-01-171-4/+7
| | | | | | | | | If the user specified -Dsysroot but we don't use it, then the results can be entirely off. This also introduces an internal variable for Configure, _sysroot, which is just "--sysroot=$sysroot", for use in places like checkccflags that need --sysroot but don't need the other flags.
* Configure: No need to skip the byteorder test when cross-compiling.Brian Fraser2014-01-171-2/+2
| | | | | This skip was added in 2001, but under the current model there's no real reason to skip it.
* Fix two Configure tests when targethost is setJess Robinson2014-01-171-2/+13
|
* Configure: When cross-compiling, look for *-gcc* instead of *-*-gccBrian Fraser2014-01-171-6/+8
| | | | | | Ditto with g++. This allows us to use, for example, ntox86-gcc or x86_64-w64-mingw32-g++.exe to cross-compile, and have Configure detect most things automatically.
* Set appropriate flags for linux or linux-like systems.Jess Robinson2014-01-171-4/+4
| | | | | This means that osnames that look like *linux*, like linux-androideabi or linux-gnueabihf are treated like linux systems.