Code Monkey home page Code Monkey logo

Comments (6)

zhengshuxin avatar zhengshuxin commented on June 12, 2024

可以自行在连接时加上。

from acl.

qazwsxedckll avatar qazwsxedckll commented on June 12, 2024

我的意思是,应该不需要这个判断,docker容器和wsl,uname -a出来是一样的,但是不知道docker用的是什么镜像。

就像这里没有加-liconv的理由一样

#Path for Linux
ifeq ($(findstring Linux, $(OSNAME)), Linux)
	ifeq ($(findstring i686, $(OSNAME)), i686)
		RPATH = linux32
	endif
	ifeq ($(findstring x86_64, $(OSNAME)), x86_64)
		RPATH = linux64
	endif
#	CFLAGS += -DLINUX2
	SYSLIB += -rdynamic
endif

from acl.

zhengshuxin avatar zhengshuxin commented on June 12, 2024

OS_ENV=$(shell uname -a)
ifeq ($(findstring WSL, $(OS_ENV)), WSL)
SYSLIB += -liconv
endif

这个是针对WSL的环境的编译选项。

from acl.

qazwsxedckll avatar qazwsxedckll commented on June 12, 2024

windows的docker desktop,启动任何一个镜像,uname -a出来,也会带有WSL的字样,但是不代表有iconv,会导致编译不过。并不是只有wsl才会uname -a出来WSL。

from acl.

zhengshuxin avatar zhengshuxin commented on June 12, 2024

有的Linux上的 glibc 包含有 iconv,有的不包含,需要单独引入,目前还没有更好的办法在 Makefile 中探测到底属于哪种情形,所以只能是粗略地通过 uname -a 来加以区分。

from acl.

babA409866 avatar babA409866 commented on June 12, 2024

可以直接安装个iconv就好了。apt-get install libiconv-dev。

from acl.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.