Link dl library (Linux/macOS) (#30)
Fixes a possible error about undefined reference to symbol "dlclose". Error observed with Ubuntu 20.04.6, GCC 9.4.0.
This commit is contained in:
parent
b02daefed4
commit
219c818ee1
|
@ -5,10 +5,11 @@ package webview
|
||||||
#cgo CXXFLAGS: -I${SRCDIR}/libs/webview/include -DWEBVIEW_STATIC
|
#cgo CXXFLAGS: -I${SRCDIR}/libs/webview/include -DWEBVIEW_STATIC
|
||||||
|
|
||||||
#cgo linux openbsd freebsd netbsd CXXFLAGS: -DWEBVIEW_GTK -std=c++11
|
#cgo linux openbsd freebsd netbsd CXXFLAGS: -DWEBVIEW_GTK -std=c++11
|
||||||
|
#cgo linux openbsd freebsd netbsd LDFLAGS: -ldl
|
||||||
#cgo linux openbsd freebsd netbsd pkg-config: gtk+-3.0 webkit2gtk-4.0
|
#cgo linux openbsd freebsd netbsd pkg-config: gtk+-3.0 webkit2gtk-4.0
|
||||||
|
|
||||||
#cgo darwin CXXFLAGS: -DWEBVIEW_COCOA -std=c++11
|
#cgo darwin CXXFLAGS: -DWEBVIEW_COCOA -std=c++11
|
||||||
#cgo darwin LDFLAGS: -framework WebKit
|
#cgo darwin LDFLAGS: -framework WebKit -ldl
|
||||||
|
|
||||||
#cgo windows CXXFLAGS: -DWEBVIEW_EDGE -std=c++14 -I${SRCDIR}/libs/mswebview2/include
|
#cgo windows CXXFLAGS: -DWEBVIEW_EDGE -std=c++14 -I${SRCDIR}/libs/mswebview2/include
|
||||||
#cgo windows LDFLAGS: -static -ladvapi32 -lole32 -lshell32 -lshlwapi -luser32 -lversion
|
#cgo windows LDFLAGS: -static -ladvapi32 -lole32 -lshell32 -lshlwapi -luser32 -lversion
|
||||||
|
|
Loading…
Reference in New Issue