Skip to content

Commit

Permalink
[foilpics] Link OpenSSL 1.0 statically
Browse files Browse the repository at this point in the history
Because the dynamic library has disappeared from Sailfish OS 4.3
  • Loading branch information
monich committed Nov 6, 2021
1 parent ed15492 commit cf02108
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app.pro
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,13 @@ app_settings {
TRANSLATIONS_PATH = /usr/share/$${TARGET}/translations
}

openssl_static {
LIBS += $$[QT_INSTALL_LIBS]/libcrypto.a $$[QT_INSTALL_LIBS]/libssl.a
PKGCONFIG += zlib
system("pkg-config openssl --atleast-version=1.1") {
message("Linking OpenSSL dynamically")
PKGCONFIG += libcrypto
} else {
PKGCONFIG += libcrypto
message("Linking OpenSSL statically")
LIBS += $$[QT_INSTALL_LIBS]/libcrypto.a
PKGCONFIG += zlib
}

CONFIG(debug, debug|release) {
Expand Down
2 changes: 2 additions & 0 deletions rpm/harbour-foilpics.spec
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ Source0: %{name}-%{version}.tar.gz

Requires: sailfishsilica-qt5
Requires: qt5-qtsvg-plugin-imageformat-svg
BuildRequires: openssl-static
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(sailfishapp)
Expand Down

0 comments on commit cf02108

Please sign in to comment.