From 9c5c4472962f4c097e499f541eed38964acdc9a6 Mon Sep 17 00:00:00 2001 From: "Andrea C. Granata" Date: Sat, 8 Sep 2012 13:39:49 +0200 Subject: [PATCH] Apply the -fPIC also on FreeBSD. --- patches/{fPIC-on-linux-x64.patch => fPIC-on-x64.patch} | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) rename patches/{fPIC-on-linux-x64.patch => fPIC-on-x64.patch} (71%) diff --git a/patches/fPIC-on-linux-x64.patch b/patches/fPIC-on-x64.patch similarity index 71% rename from patches/fPIC-on-linux-x64.patch rename to patches/fPIC-on-x64.patch index 44d82e0..975314b 100644 --- a/patches/fPIC-on-linux-x64.patch +++ b/patches/fPIC-on-x64.patch @@ -6,8 +6,8 @@ index ebdf557..c7a59bc 100644 [ 'OS=="linux"', { 'cflags': [ '-ansi' ], }], -+ [ 'OS=="linux" and v8_target_arch=="x64" and component=="static_library"', { -+ 'cflags': [ '-fPIC', ], ++ [ '(OS=="linux" or OS=="freebsd") and v8_target_arch=="x64" and component=="static_library"', { ++ 'cflags': [ '-fPIC' ], + }], [ 'visibility=="hidden"', { 'cflags': [ '-fvisibility=hidden' ],