Skip to content

Commit 262eea9

Browse files
committed
123
1 parent dcd5625 commit 262eea9

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

apps/player/xmake.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ add_requires("ffmpeg")
66

77
target("player")
88
do
9-
set_kind("static")
109
add_files("*.c")
1110
add_packages("sdl2")
1211
add_packages("sdl2_image")

repo/packages/s/sdl2/xmake.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ do
3535

3636
add_configs("shared", {
3737
description = "Build shared library.",
38-
default = os.getenv("RT_XMAKE_LINK_TYPE") ~= "static",
38+
default = os.getenv("RT_XMAKE_LINK_TYPE") == "static",
3939
type = "boolean"
4040
})
4141

@@ -49,7 +49,7 @@ do
4949
local cc = info.cc
5050
os.setenv("PATH", path.directory(cc) .. ":" .. os.getenv("PATH"))
5151

52-
table.insert(configs, "--enable-static=yes")
52+
-- table.insert(configs, "--enable-static=yes")
5353
if package:config("shared") then
5454
table.insert(configs, "--enable-shared=yes")
5555
else
@@ -78,7 +78,7 @@ do
7878

7979
import("package.tools.autoconf").configure(package, configs)
8080
import("package.tools.make").install(package)
81-
81+
8282
end)
8383

8484
on_test(function(package)

0 commit comments

Comments
 (0)