From ec5578a437255d9495d27bd1691ebc6e9ef7ced2 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 24 Oct 2024 15:47:06 +0300 Subject: [PATCH] ref: gl: vgl_shim: remove -fno-PIC to properly link it with shared library --- ref/gl/vgl_shim/wscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ref/gl/vgl_shim/wscript b/ref/gl/vgl_shim/wscript index e7228285..0a5264a5 100644 --- a/ref/gl/vgl_shim/wscript +++ b/ref/gl/vgl_shim/wscript @@ -10,7 +10,7 @@ def configure(conf): conf.define('REF_DLL', 1) def build(bld): - bld.env.LDFLAGS += ['-fPIC'] + bld.env.CFLAGS_cstlib.remove('-fno-PIC') bld.env.CFLAGS += ['-fPIC'] bld.stlib(source = bld.path.ant_glob('*.c'), target = 'vgl_shim',