Skip to content
This repository was archived by the owner on Jan 5, 2026. It is now read-only.

Comments

Always create $(DESTDIR)/lib during make install, even on Windows#217

Merged
baentsch merged 1 commit intoopen-quantum-safe:OQS-OpenSSL_1_1_1-stablefrom
kevinmkane:wininstall-fix
Jun 26, 2020
Merged

Always create $(DESTDIR)/lib during make install, even on Windows#217
baentsch merged 1 commit intoopen-quantum-safe:OQS-OpenSSL_1_1_1-stablefrom
kevinmkane:wininstall-fix

Conversation

@kevinmkane
Copy link

Cross-compiling for Windows deposits binaries in bin, not lib.

Commit 72ea3e9 added rules to copy liboqs.a to OpenSSL's lib directory for development purposes, but when cross-compiling for Windows, lib hasn't been created yet.

As a result, during make install, liboqs.a ends up copied and named lib in $(DESTDIR). This later causes a failure when it tries to create a directory there called lib only to find a file exists with that name.

This commit causes lib to always be created in the install_runtime_libs recipe, and liboqs.a ends up in the right place. The mkdir-p.pl script doesn't fail if it tries to create a directory that already exists as a directory, and make install succeeds.

Cross-compiling for Windows deposits binaries in bin, not lib.

Commit 72ea3e9 added rules to copy liboqs.a to OpenSSL's lib directory for development purposes, but when cross-compiling for Windows, lib hasn't been created yet.

As a result, during make install, liboqs.a ends up copied and named "lib" in $(DESTDIR). This later causes a failure when it tries to create a directory there called "lib" only to find a file exists with that name.

This commit causes lib to always be created in the install_runtime_libs recipe, and liboqs.a ends up in the right place.
Copy link
Member

@baentsch baentsch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kevinmkane for the explanations. Indeed I never considered Windows-specifics to be relevant when changing unix-Makefile.tmpl. This fix looks good to me.

@kevinmkane
Copy link
Author

I wouldn't have expected it either! But now we know the template is used whenever *nix is the build platform, regardless of target.

@baentsch baentsch merged commit 96bd69b into open-quantum-safe:OQS-OpenSSL_1_1_1-stable Jun 26, 2020
@kevinmkane kevinmkane deleted the wininstall-fix branch November 23, 2020 16:44
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants