summaryrefslogtreecommitdiffstats
path: root/Configurations
AgeCommit message (Collapse)Author
2016-03-01Unified - have configdata.pm depend on a few more thingsRichard Levitte
Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-28VMS - don't exit out of a MMS recipeRichard Levitte
Exiting out of a recipe more than necessary leaves an ugly message. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-28Make generation of dependency files more efficient when possibleRichard Levitte
When building with GNU C, clang or VMS C, it's more efficient to generate dependency file and object file in one call rather than two. Have the dependency output in a temporary file and compare it with the previous one if available to see if replacement is waranted, thereby avoiding unnecessary reconstruction of Makefile / descrip.mms. Github issue #750 Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-27Remove some old files.Rich Salz
I read the PROBLEMS, and they're outdated; nothing I'd put in the online FAQ, for example. Test-builds work without using these files. Had to remove the rehash.time stuff from Makefile.in Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-27Keep a cache of files that already have a recipe, in common.tmplRichard Levitte
We don't want recipes for the same files generated more than once Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-27GH753: More spelling fixFdaSilvaYY
Signed-off-by: Rich Salz <rsalz@akamai.com> Reviewed-by: Kurt Roeckx <kurt@openssl.org>
2016-02-26Public API for Certificate TransparencyRob Percival
Reviewed-by: Ben Laurie <ben@openssl.org> Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-26Remove comments saying you must do 'make -f Makefile.in TABLE'Richard Levitte
Since the configs were remade into hash tables, this isn't needed any more. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-26Unified on VMS - add %disabled in vmsconfig.pm (util/dofile.pl demands it)Richard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-26Configure - neater looking add() and add_before()Richard Levitte
They now default to " " as separator, but that can be overridden by having a hash with parameters as last argument. The only currently recognised parameter is `separator'. The special separator `undef' will force the result to become a list rather than a concatenated string. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-25Make it possible to build even if dependency files can't be generatedRichard Levitte
If the local system doesn't have GNU C or clang, and not even makedepend, the build will stop because the call of 'makedepend' fails. This changes so the build won't stop because of such failure. The result will be empty .d files, and that's ok. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-23Remove all -march= from configsRichard Levitte
These flags are limitting needlessly, are often patched by packagers, and should be specified on the configuration command line by anyone who desires for it to be specific rather than forced by us. This work was already done with mingw when those configs were worked on, now it gets applied to the remaining configs. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-22Clean away $config{no_shared} since we have $disabled{shared}Richard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-21Check that any dependency file is newer than Makefile before concatenatingRichard Levitte
On slower file systems, this makes a huge difference Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-21Avoid GNU make re-exec when adding dependencies to MakefileRichard Levitte
GNU make will re-exec if (it thinks that) the Makefile has changed. Just having the target Makefile seems to make it think it has, so we end up in a look where GNU make re-execs for ever. The fix is easy, just remove the Makefile target and have the depend target run the recipe on its own instead of depending on Makefile. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-20Remove OBJ_EXT and friends.Ben Laurie
Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-20Missing extension on dependency, .d file is not always made (e.g. when inputBen Laurie
is a .s). Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-20Unified on VMS - install dynamic engines if there are anyRichard Levitte
Don't check for no_shared Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-20Always build library object files with shared library cflagsRichard Levitte
This takes us away from the idea that we know exactly how our static libraries are going to get used. Instead, we make them available to build shareable things with, be it other shared libraries or DSOs. On the other hand, we also have greater control of when the shared library cflags. They will never be used with object files meant got binaries, such as apps/openssl or test/test*. With unified, we take this a bit further and prepare for having to deal with extra cflags specifically to be used with DSOs (dynamic engines), libraries and binaries (applications). Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-20apps_extra_src changed name to apps_aux_src, rename everywhereRichard Levitte
One spot was forgotten. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-20VMS static libraries have the extension .OLB, not .LIBRichard Levitte
Object LiBrary Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-19Unified 'make depend' has to cleanup after itselfRichard Levitte
It failed to remove lingering Makefile.new Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-19Fix Configurations/unix-Makefile.tmplRichard Levitte
It was turning off output again in two place where it should have turned it on. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-19Make sure the linked programs have the correct extensionRichard Levitte
Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Big rename fest of MingW shared librariesRichard Levitte
So far, MingW shared libraries were named like this libeay32.dll + libeay32.dll.a ssleay32.dll + ssleay32.dll.a That naming scheme is antiquated, a reminicense of SSLeay. We're therefore changing the scheme to something that's more like the rest of OpenSSL. There are two factors to remember: - Windows libraries have no recorded SOvers, which means that the shared library version must be encoded in the name. According to some, it's unwise to encode extra periods in a Windows file name, so we convert version number periods to underscores. - MingW has multilib ability. However, DLLs need to reside with the binaries that use them, so to allow both 32-bit and 64-bit DLLs to reside in the same place, we add '-x64' in the name of the 64-bit ones. The resulting name scheme (for SOver 1.1) is this: on x86: libcrypto-1_1.dll + libcrypto.dll.a libssl-1_1.dll + libssl.dll.a on x86_64: libcrypto-1_1-x64.dll + libcrypto.dll.a libssl-1_1-x64.dll + libssl.dll.a An observation is that the import lib is the same for both architectures. Not to worry, though, as they will be installed in PREFIX/lib/ for x86 and PREFIX/lib64/ for x86_64. As a side effect, MingW got its own targets in Makefile.shared. link_dso.mingw-shared and link_app.mingw-shared are aliases for the corresponding cygwin-shared targets. link_shlib.mingw-shared is, however, a target separated from the cygwin one. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Misc small fixes.Richard Levitte
Better libclean that removes the exact files that have been built, nothing more and nothing less. Corrected typo A couple of editorial changes. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Try removing installation directories after having uninstalled filesRichard Levitte
Of course, if there are remaining files in a directory, it won't be removed. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Small rename fest in unified, obj2dynlib -> obj2dsoRichard Levitte
Since we're using the acronym DSO everywhere else and that's a common name for that kind of object, we might as well do so here as well. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Remake the installation of shared libraries in unix-Makefile.tmplRichard Levitte
Instead of having the installation recipe rely on special knowledge, feed it with information, including what shared library files belong together. For Cygwin and Mingw, that's the .dll and its import library .dll.a. For Unixen, it's the shared library file name with SO version and the one without. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Big rename fest in makefile.shared: link_a / link_o -> link_shlib / link_dsoRichard Levitte
Originally, the Makefile.shared targets described what they used as input for a shared object, be it a shared library or a DSO. It turned out, however, that the link_o targets were used exclusively for engines and the link_a targets were for libcrypto and libssl. This rename fest turns and indication on the kind of input the targets get to the intention with using them. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Centralise the shared library / dso name info in unix-Makefile.tmplRichard Levitte
Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Let Configure figure out the diverse shared library and DSO extensionsRichard Levitte
Then it can pass around the information where it belongs. The Makefile templates pick it up along with other target data, the DSO module gets to pick up the information through crypto/include/internal/dso_conf.h Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19VMS fixed in unified buildRichard Levitte
- install_sw had a display of text that belongs under the install target - previous layout installed architecture dependent files in dev:['prefix'.'arch'.LIB], dev:['prefix'.'arch'.EXE] and dev:['prefix'.'arch'.ENGINES]. Changed to dev:['prefix'.LIB.'arch'], dev:['prefix'.EXE.'arch'] and dev:['prefix'.ENGINES.'arch'] instead. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Unified - don't install the ossltest engineRichard Levitte
This is done with a simple file name comparison. We could think of something more elegant in the future. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Unified - do a better job when uninstallingRichard Levitte
Some directories weren't removed. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19Rethink the uplink / applink storyRichard Levitte
Adding uplink and applink to some builds was done by "magic", the configuration for "mingw" only had a macro definition, the Configure would react to its presence by adding the uplink source files to cpuid_asm_src, and crypto/build.info inherited dance to get it compiled, and Makefile.shared made sure applink.o would be appropriately linked in. That was a lot under the hood. To replace this, we create a few template configurations in Configurations/00-base-templates.conf, inherit one of them in the "mingw" configuration, the rest is just about refering to the $target{apps_aux_src} / $target{apps_obj} in the right places. Reviewed-by: Andy Polyakov <appro@openssl.org>
2016-02-19VMS: rather use a quick file comparison than DIFFRichard Levitte
VMS DIFF tries to calculate all the differences, which is slower than just reading the files and stopping at the first difference. The latter doesn't exist as a command, so the problem is solved with perl and File::Compare (has been in core perl since very early version 5). Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2016-02-19VMS: produce dependency files just like you produce object filesRichard Levitte
We need to do the same dance as when object files are created. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2016-02-19Fix casing on VMSRichard Levitte
DCL may be in extended parsing style, which makes it less case insensitive, so when removing a string from another, make sure to get casing correctly. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2016-02-19Don't use config.timestamp, we already have configdata.pmRichard Levitte
The benefit with using configdata.pm is that Configure writes it for us. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
2016-02-18Automatic 'make depend' for the unified build schemeRichard Levitte
This isn't the fully featured combination of compiler generated dependency files and Makefile include directives, but a cheaper variant of the same. The dependency files are generated automatically, but then we have the usual "depend" target. However, we depend on it in the bigger phony targets that are the most likely to be used. That make this feature automatic enough. A side effect is that we can't use the build file's timestamp to check if reconfiguring might be in order. In its place, we use a flag file that depends on Configure and the build file template and depend on it in spots where it makes sense to check for the need to reconfigure. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-18Set EXE_EXT environment variable when testingRichard Levitte
When cross compiling, we may end up with someting like apps/openssl.exe and a number of test/*.exe. However, util/shlib_wrap.sh doesn't know what the executable extension should be, if any, so we need to make sure it has access to that information when testing, since OpenSSL::Test uses that script to execute all programs. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-18Remove all special make depend flags, as well as OPENSSL_DOING_MAKEDEPENDRichard Levitte
All those flags existed because we had all the dependencies versioned in the repository, and wanted to have it be consistent, no matter what the local configuration was. Now that the dependencies are gone from the versioned Makefile.ins, it makes much more sense to use the exact same flags as when compiling the object files. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-18Don't treat .d (depend) files separately from object filesRichard Levitte
.d (.MMS in the VMS world) files with just dependencies are built from exactly the same conditions as the object files. Therefore, the rules for them can be built at the same time as the rules for the corresponding object files. This removes the requirement for a src2dep function in the build file templates, and for common.tmpl to call it. In the end, the existence of depend files is entirely up to the build file. Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-18Fix the makedepend constructor in unix-Makefile.tmplRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-17Remove "experimental" in code and comments, too.Rich Salz
Thanks to Viktor for additional review. Reviewed-by: Richard Levitte <levitte@openssl.org>
2016-02-18Fix spellingRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-18Fix spellingRichard Levitte
Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-18Add -lresolv to the Solaris ex_libsRichard Levitte
The reason is that we use hstrerror() and other resolver functions. Reporter: Erik Forsberg <erik@efca.com> Reviewed-by: Rich Salz <rsalz@openssl.org>
2016-02-16Fix use of add() and add_before() in Configurations/*.confRichard Levitte
These two functions take a separator to concatenat the strings with as first argument. Reviewed-by: Viktor Dukhovni <viktor@openssl.org>