From 8ed33f1bc714c154914af922d26fe4234cd8edf4 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 14 Oct 2018 22:06:11 -0400 Subject: remove use of hardcoded -fPIC compiler flag, and use compiler flag dict instead --- libs/hidapi/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/hidapi') diff --git a/libs/hidapi/wscript b/libs/hidapi/wscript index 2c870661b8..383289fbec 100644 --- a/libs/hidapi/wscript +++ b/libs/hidapi/wscript @@ -57,7 +57,7 @@ def build(bld): obj.linkflags = [ '-lsetupapi', '-mwindows' ] obj.uselib = 'SETUPAPI' else: - obj.cflags += [ '-fPIC' ] + obj.cflags += [ bld.env['compiler_flags_dict']['pic'] ] if sys.platform == 'darwin': obj.source = 'mac/hid.c' obj.framework = [ 'IOKit', 'CoreFoundation' ] -- cgit v1.2.3