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

使 Ubuntu 将输出文件识别为可执行程序 #58

Merged

Conversation

pzhlkj6612
Copy link
Member

@pzhlkj6612 pzhlkj6612 commented Feb 13, 2020

添加-no-pie标志到QMAKE_LFLAGS,使 Ubuntu 认为输出的二进制文件是可执行文件而不是动态链接库(共享库、共享链接库),进而使输出文件能被双击运行,同时显示为可执行程序的图标。

before after
"Properties..." shared library (application/x-sharedlib) executable (application/x-executable)
file ELF 64-bit LSB shared object, x86-64, version 1 (GNU/Linux), dynamically linked ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked

参考:


本 PR 在 gcc version 7.4.0 (Ubuntu 18.04.3 and Ubuntu 18.04.4) 通过测试。

@pzhlkj6612 pzhlkj6612 changed the title Make Ubuntu recognize the output as exec-bin 使 Ubuntu 将输出文件识别为可执行程序 Feb 14, 2020
@pzhlkj6612 pzhlkj6612 force-pushed the ubuntu_binary_icon_recognition branch 2 times, most recently from 836ee1c to fa32bd4 Compare February 23, 2020 01:53
@pzhlkj6612 pzhlkj6612 merged commit 59a6988 into BesLyric-for-X:master Feb 23, 2020
@pzhlkj6612 pzhlkj6612 deleted the ubuntu_binary_icon_recognition branch February 23, 2020 02:25
@pzhlkj6612 pzhlkj6612 added this to the Next Release milestone Feb 24, 2020
@BensonLaur BensonLaur mentioned this pull request Feb 29, 2020
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

Successfully merging this pull request may close these issues.

None yet

1 participant