Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Windows: support static build and enable ASLR and NX #15

Closed
rdoeffinger opened this issue Mar 28, 2015 · 1 comment
Closed

Windows: support static build and enable ASLR and NX #15

rdoeffinger opened this issue Mar 28, 2015 · 1 comment

Comments

@rdoeffinger
Copy link
Contributor

Without these linking against a static Qt still needs libgcc_s_sjlj-1.dll and libstdc++-6.dll, which I think is not desirable.
Enabling ASLR and NX should be a good idea always.
Haven't really tested except compilation and starting with WINE though.

--- a/qtpass.pro
+++ b/qtpass.pro
@@ -44,6 +44,10 @@ RESOURCES += resources.qrc

win32 {
RC_FILE = windows.rc

  • static {
  •    QMAKE_LFLAGS += -static-libgcc -static-libstdc++
    
  • }
  • QMAKE_LFLAGS += -Wl,--dynamicbase -Wl,--nxcompat
    } else:macx {
    ICON = artwork/icon.icns
    }
@rdoeffinger
Copy link
Contributor Author

Fixed by my patches being merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant