Projects
Eulaceura:Factory
skylark
_service:obs_scm:Makefile-Use-strip-option-in-g...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:obs_scm:Makefile-Use-strip-option-in-gcc.patch of Package skylark
From d3d934e6358ba214bfbc81e12d6f38d287d2bc45 Mon Sep 17 00:00:00 2001 From: Dongxu Sun <sundongxu3@huawei.com> Date: Thu, 8 Dec 2022 09:23:09 +0000 Subject: [PATCH 2/2] Makefile: Use strip option in gcc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add ‘-s’ in gcc compile options and remove ‘-g’ options to keep skylark security and reduce binary file size. Signed-off-by: sundongxu <sundongxu3@huawei.com> --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index cc00862..f2c0a80 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ skylarkd: *.py */*.py mv ../skylarkd . libskylarkmsr.so: data_collector/get_msr.c - gcc --share -fPIC -g -o libskylarkmsr.so data_collector/get_msr.c + gcc --share -fPIC -s -o libskylarkmsr.so data_collector/get_msr.c install: skylarkd libskylarkmsr.so skylarkd.service skylarkd.sysconfig low_prio_machine.slice high_prio_machine.slice install -T -D skylarkd $(DESTDIR)/usr/sbin/skylarkd -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2