// Copyright © 2015-2020 Hilko Bengen <bengen@hilluzination.de>
// All rights reserved.
//
// Use of this source code is governed by the license that can be
// found in the LICENSE file.

package yara

// #cgo !yara_no_pkg_config,!yara_static  pkg-config: yara
// #cgo !yara_no_pkg_config,yara_static   pkg-config: --static yara
// #cgo yara_no_pkg_config                LDFLAGS:    -lyara -lm -lcrypto
/*
#include <yara.h>
#if YR_VERSION_HEX < 0x040200
#error YARA version 4.2 required
#endif
*/
import "C"

// Copyright © 2015-2020 Hilko Bengen <bengen@hilluzination.de>
// All rights reserved.
//
// Use of this source code is governed by the license that can be
// found in the LICENSE file.

package yara

// #cgo !yara_no_pkg_config,!yara_static  pkg-config: yara
// #cgo !yara_no_pkg_config,yara_static   pkg-config: --static yara
// #cgo yara_no_pkg_config                LDFLAGS:    -lyara -lm
/*
#include <yara.h>
#if YR_VERSION_HEX < 0x040200
#error YARA version 4.2 required
#endif
*/
import "C"

Remove -lcrypto from LDFLAGS when yara_no_pkg_config is set.
Remove -lcrypto from LDFLAGS when yara_no_pkg_config is set.

Close #108
