简体   繁体   English

共享Linux二进制文件

[英]Sharing Linux binaries

I've been wondering something for a long time. 我想知道很久了。 Is it sane to release ELF (32 and 64 bits) binaries in order people to use them? 释放ELF(32位和64位)二进制文件以供人们使用是理智的吗? I know we better have to release sources – that's what I'm used to doing – but I'd like to know what happens if I give a program I've compiled on my archlinux to someone using Ubuntu, assuming I don't use any dynamic libraries except OpenGL and Xlib. 我知道我们最好还是发布源代码,这就是我曾经做过的事情,但是我想知道如果我将我在archlinux上编译的程序交给使用Ubuntu的人会发生什么,前提是我不使用除OpenGL和Xlib外的任何动态库。

There is a lot of commercial software that does it. 有很多商业软件可以做到这一点。 It works if you are a bit careful and compile against sufficiently old versions of libraries. 如果您有点小心并且可以针对足够老版本的库进行编译,则可以使用它。

The Linux Standards Base defines a set of libraries and other things that is reasonable to expect on the target system. Linux标准库定义了一组库和其他在目标系统上可以预期的东西。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM