specifed CGO_CFLAGS and CGO_LDFLAGS in Makefile.am
All checks were successful
continuous-integration/drone/push Build is passing

removed ##cgo CFLAGS and #cgo LDFLAGS from go source files
This commit is contained in:
2023-10-30 02:30:19 +09:00
parent 5a1fd8f130
commit a7b323b795
5 changed files with 10 additions and 14 deletions

View File

@ -1,26 +1,24 @@
package hcl
/*
#cgo CFLAGS: -I/home/hyung-hwan/xxx/include -g -Wall
#cgo LDFLAGS: -L/home/hyung-hwan/xxx/lib -lhcl -ldl -lquadmath
#include <hcl.h>
#include <hcl-utl.h>
*/
import "C"
import (
// "bufio"
// "io"
// "bufio"
// "io"
"os"
// "sync"
// "unsafe"
// "sync"
// "unsafe"
)
type IOHandle struct {
file *os.File
ioif interface{}
}
/*
type IOHandleTable struct {
mtx sync.Mutex
@ -408,7 +406,7 @@ func (p *PrintFileHandler) Open(g *HCL) error {
f *os.File
// err error
)
// f, err = os.OpenFile("/dev/stdout", os.O_WRONLY|os.O_CREATE|os.O_TRUNC, 0644)
// if err != nil {
// return err

View File

@ -1,9 +1,6 @@
package hcl
/*
#cgo CFLAGS: -I/home/hyung-hwan/xxx/include -g -Wall
#cgo LDFLAGS: -L/home/hyung-hwan/xxx/lib -lhcl -ldl -lquadmath
#include <hcl.h>
#include <hcl-utl.h>
*/

View File

@ -1,9 +1,6 @@
package hcl
/*
#cgo CFLAGS: -I/home/hyung-hwan/xxx/include -g -Wall
#cgo LDFLAGS: -L/home/hyung-hwan/xxx/lib -lhcl -ldl -lquadmath
#include <hcl.h>
*/
import "C"