Description: Make bgzf helper functions static inline
 packInt16, unpackInt16 and packInt32 in src/samtools/bgzf.c are declared
 non-static "inline". Under C99+ inline semantics (GCC default -std=gnu17)
 a non-static inline function without an external definition does not emit
 an out-of-line symbol, so when the extension is compiled without
 optimization the calls leave undefined symbols and importing bx.misc.bgzf
 fails with "undefined symbol: packInt16".  Making them static inline fixes
 the runtime link error.
Author: tangxiaofeng <tangxiaofeng@kylinos.cn>
Origin: upstream, https://github.com/bxlab/bx-python
Forwarded: not-needed
Last-Update: 2026-09-05

--- python-bx-0.13.0.orig/src/samtools/bgzf.c
+++ python-bx-0.13.0/src/samtools/bgzf.c
@@ -73,7 +73,7 @@ static const int GZIP_WINDOW_BITS = -15;
 static const int Z_DEFAULT_MEM_LEVEL = 8;
 
 
-inline
+static inline
 void
 packInt16(uint8_t* buffer, uint16_t value)
 {
@@ -81,14 +81,14 @@ packInt16(uint8_t* buffer, uint16_t valu
     buffer[1] = value >> 8;
 }
 
-inline
+static inline
 int
 unpackInt16(const uint8_t* buffer)
 {
     return (buffer[0] | (buffer[1] << 8));
 }
 
-inline
+static inline
 void
 packInt32(uint8_t* buffer, uint32_t value)
 {
