From a7a2e1e87e37bbfb34e6674a2883ef02ac2f7ea4 Mon Sep 17 00:00:00 2001
From: cheliequan <liequanche@126.com>
Date: 星期三, 28 十二月 2022 13:58:30 +0800
Subject: [PATCH] 设置CFLAGS=-fPIC

---
 CMakeLists.txt |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8f90a2a..25e6547 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,5 +1,6 @@
 cmake_minimum_required(VERSION 3.9)
 project(memfd)
+set(CMAKE_CFLAGS "${CMAKE_C_FLAGS} -fPIC")
 add_subdirectory(src)
 add_subdirectory(sample)
 

--
Gitblit v1.8.0