Skip to content

Commit cedd417

Browse files
committed
makepanda: build Python libraries statically with --static
Fixes panda3d#477
1 parent 0a43008 commit cedd417

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

makepanda/makepandacore.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3362,8 +3362,13 @@ def CalcLocation(fn, ipath):
33623362

33633363

33643364
def FindLocation(fn, ipath, pyabi=None):
3365-
if (GetLinkAllStatic() and fn.endswith(".dll")):
3366-
fn = fn[:-4] + ".lib"
3365+
if GetLinkAllStatic():
3366+
if fn.endswith(".dll"):
3367+
fn = fn[:-4] + ".lib"
3368+
elif fn.endswith(".pyd"):
3369+
fn = "libpy.panda3d." \
3370+
+ os.path.splitext(fn[:-4] + GetExtensionSuffix())[0] + ".lib"
3371+
33673372
loc = CalcLocation(fn, ipath)
33683373
base, ext = os.path.splitext(fn)
33693374

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy