Content-Disposition: inline; filename="f1d728eeeead551041232b955e60f5b61a40485f..51b2d27599e35bf48ff2ccf977b73d72b7286b80.patch"
Last-Modified: Sat, 21 Jun 2025 11:33:00 GMT
Expires: Tue, 19 Jun 2035 11:33:00 GMT

s RPKI Toolkit</title>
<meta name='generator' content='cgit v1.2.3'/>
<meta name='robots' content='index, nofollow'/>
<link rel='stylesheet' type='text/css' href='/cgit.css'/>
<link rel='shortcut icon' href='/favicon.ico'/>
<link rel='alternate' title='Atom feed' href='https://git.hactrn.net/sra/rpki.net/atom/openssl/trunk/shlib/svr5-shared-gcc.sh?h=master' type='application/atom+xml'/>
<link rel='vcs-git' href='https://git.hactrn.net/sra/rpki.net' title='sra/rpki.net Git repository'/>
</head>
<body>
<div id='cgit'><table id='header'>
<tr>
<td class='logo' rowspan='2'><a href='/'><img src='/cgit.png' alt='cgit logo'/></a></td>
<td class='main'><a href='/'>index</a> : <a title='sra/rpki.net' href='/sra/rpki.net/'>sra/rpki.net</a></td><td class='form'><form method='get'>
<input type='hidden' name='id' value='1edaeb06de5b416561e440bf36ab97bf31e9fdc8'/><select name='h' onchange='this.form.submit();'>
<option value='master' selected='selected'>master</option>
<option value='zone-cleanup'>zone-cleanup</option>
</select> <input type='submit' value='switch'/></form></td></tr>
<tr><td class='sub'>Dragon Research Labs RPKI Toolkit</td><td class='sub right'>git user</td></tr></table>
<table class='tabs'><tr><td>
<a href='/sra/rpki.net/about/'>about</a><a href='/sra/rpki.net/'>summary</a><a href='/sra/rpki.net/refs/?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>refs</a><a href='/sra/rpki.net/log/openssl/trunk/shlib/svr5-shared-gcc.sh'>log</a><a class='active' href='/sra/rpki.net/tree/openssl/trunk/shlib/svr5-shared-gcc.sh?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>tree</a><a href='/sra/rpki.net/commit/openssl/trunk/shlib/svr5-shared-gcc.sh?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>commit</a><a href='/sra/rpki.net/diff/openssl/trunk/shlib/svr5-shared-gcc.sh?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>diff</a></td><td class='form'><form class='right' method='get' action='/sra/rpki.net/log/openssl/trunk/shlib/svr5-shared-gcc.sh'>
<input type='hidden' name='id' value='1edaeb06de5b416561e440bf36ab97bf31e9fdc8'/><select name='qt'>
<option value='grep'>log msg</option>
<option value='author'>author</option>
<option value='committer'>committer</option>
<option value='range'>range</option>
</select>
<input class='txt' type='search' size='10' name='q' value=''/>
<input type='submit' value='search'/>
</form>
</td></tr></table>
<div class='path'>path: <a href='/sra/rpki.net/tree/?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>root</a>/<a href='/sra/rpki.net/tree/openssl?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>openssl</a>/<a href='/sra/rpki.net/tree/openssl/trunk?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>trunk</a>/<a href='/sra/rpki.net/tree/openssl/trunk/shlib?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>shlib</a>/<a href='/sra/rpki.net/tree/openssl/trunk/shlib/svr5-shared-gcc.sh?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>svr5-shared-gcc.sh</a></div><div class='content'>blob: c5d0cc56ace48759d71e1d094b39baff008f61fd (<a href='/sra/rpki.net/plain/openssl/trunk/shlib/svr5-shared-gcc.sh?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>plain</a>) (<a href='/sra/rpki.net/blame/openssl/trunk/shlib/svr5-shared-gcc.sh?id=1edaeb06de5b416561e440bf36ab97bf31e9fdc8'>blame</a>)
<table summary='blob content' class='blob'>
<tr><td class='linenumbers'><pre><a id='n1' href='#n1'>1</a>
<a id='n2' href='#n2'>2</a>
<a id='n3' href='#n3'>3</a>
<a id='n4' href='#n4'>4</a>
<a id='n5' href='#n5'>5</a>
<a id='n6' href='#n6'>6</a>
<a id='n7' href='#n7'>7</a>
<a id='n8' href='#n8'>8</a>
<a id='n9' href='#n9'>9</a>
<a id='n10' href='#n10'>10</a>
<a id='n11' href='#n11'>11</a>
<a id='n12' href='#n12'>12</a>
<a id='n13' href='#n13'>13</a>
<a id='n14' href='#n14'>14</a>
<a id='n15' href='#n15'>15</a>
<a id='n16' href='#n16'>16</a>
<a id='n17' href='#n17'>17</a>
<a id='n18' href='#n18'>18</a>
<a id='n19' href='#n19'>19</a>
<a id='n20' href='#n20'>20</a>
<a id='n21' href='#n21'>21</a>
<a id='n22' href='#n22'>22</a>
<a id='n23' href='#n23'>23</a>
<a id='n24' href='#n24'>24</a>
<a id='n25' href='#n25'>25</a>
<a id='n26' href='#n26'>26</a>
<a id='n27' href='#n27'>27</a>
<a id='n28' href='#n28'>28</a>
<a id='n29' href='#n29'>29</a>
<a id='n30' href='#n30'>30</a>
<a id='n31' href='#n31'>31</a>
<a id='n32' href='#n32'>32</a>
<a id='n33' href='#n33'>33</a>
<a id='n34' href='#n34'>34</a>
<a id='n35' href='#n35'>35</a>
<a id='n36' href='#n36'>36</a>
<a id='n37' href='#n37'>37</a>
<a id='n38' href='#n38'>38</a>
<a id='n39' href='#n39'>39</a>
<a id='n40' href='#n40'>40</a>
<a id='n41' href='#n41'>41</a>
<a id='n42' href='#n42'>42</a>
<a id='n43' href='#n43'>43</a>
<a id='n44' href='#n44'>44</a>
<a id='n45' href='#n45'>45</a>
<a id='n46' href='#n46'>46</a>
<a id='n47' href='#n47'>47</a>
<a id='n48' href='#n48'>48</a>
</pre></td>
<td class='lines'><pre><code><style>pre { line-height: 125%; }
td.linenos .normal { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
span.linenos { color: inherit; background-color: transparent; padding-left: 5px; padding-right: 5px; }
td.linenos .special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
span.linenos.special { color: #000000; background-color: #ffffc0; padding-left: 5px; padding-right: 5px; }
.highlight .hll { background-color: #ffffcc }
.highlight .c { color: #888 } /* Comment */
.highlight .err { color: #A61717; background-color: #E3D2D2 } /* Error */
.highlight .k { color: #080; font-weight: bold } /* Keyword */
.highlight .ch { color: #888 } /* Comment.Hashbang */
.highlight .cm { color: #888 } /* Comment.Multiline */
.highlight .cp { color: #C00; font-weight: bold } /* Comment.Preproc */
.highlight .cpf { color: #888 } /* Comment.PreprocFile */
.highlight .c1 { color: #888 } /* Comment.Single */
.highlight .cs { color: #C00; font-weight: bold; background-color: #FFF0F0 } /* Comment.Special */
.highlight .gd { color: #000; background-color: #FDD } /* Generic.Deleted */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .ges { font-weight: bold; font-style: italic } /* Generic.EmphStrong */
.highlight .gr { color: #A00 } /* Generic.Error */
.highlight .gh { color: #333 } /* Generic.Heading */
.highlight .gi { color: #000; background-color: #DFD } /* Generic.Inserted */
.highlight .go { color: #888 } /* Generic.Output */
.highlight .gp { color: #555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #666 } /* Generic.Subheading */
.highlight .gt { color: #A00 } /* Generic.Traceback */
.highlight .kc { color: #080; font-weight: bold } /* Keyword.Constant */
.highlight .kd { color: #080; font-weight: bold } /* Keyword.Declaration */
.highlight .kn { color: #080; font-weight: bold } /* Keyword.Namespace */
.highlight .kp { color: #080 } /* Keyword.Pseudo */
.highlight .kr { color: #080; font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #888; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #00D; font-weight: bold } /* Literal.Number */
.highlight .s { color: #D20; background-color: #FFF0F0 } /* Literal.String */
.highlight .na { color: #369 } /* Name.Attribute */
.highlight .nb { color: #038 } /* Name.Builtin */
.highlight .nc { color: #B06; font-weight: bold } /* Name.Class */
.highlight .no { color: #036; font-weight: bold } /* Name.Constant */
.highlight .nd { color: #555 } /* Name.Decorator */
.highlight .ne { color: #B06; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #06B; font-weight: bold } /* Name.Function */
.highlight .nl { color: #369; font-style: italic } /* Name.Label */
.highlight .nn { color: #B06; font-weight: bold } /* Name.Namespace */
.highlight .py { color: #369; font-weight: bold } /* Name.Property */
.highlight .nt { color: #B06; font-weight: bold } /* Name.Tag */
.highlight .nv { color: #369 } /* Name.Variable */
.highlight .ow { color: #080 } /* Operator.Word */
.highlight .w { color: #BBB } /* Text.Whitespace */
.highlight .mb { color: #00D; font-weight: bold } /* Literal.Number.Bin */
.highlight .mf { color: #00D; font-weight: bold } /* Literal.Number.Float */
.highlight .mh { color: #00D; font-weight: bold } /* Literal.Number.Hex */
.highlight .mi { color: #00D; font-weight: bold } /* Literal.Number.Integer */
.highlight .mo { color: #00D; font-weight: bold } /* Literal.Number.Oct */
.highlight .sa { color: #D20; background-color: #FFF0F0 } /* Literal.String.Affix */
.highlight .sb { color: #D20; background-color: #FFF0F0 } /* Literal.String.Backtick */
.highlight .sc { color: #D20; background-color: #FFF0F0 } /* Literal.String.Char */
.highlight .dl { color: #D20; background-color: #FFF0F0 } /* Literal.String.Delimiter */
.highlight .sd { color: #D20; background-color: #FFF0F0 } /* Literal.String.Doc */
.highlight .s2 { color: #D20; background-color: #FFF0F0 } /* Literal.String.Double */
.highlight .se { color: #04D; background-color: #FFF0F0 } /* Literal.String.Escape */
.highlight .sh { color: #D20; background-color: #FFF0F0 } /* Literal.String.Heredoc */
.highlight .si { color: #33B; background-color: #FFF0F0 } /* Literal.String.Interpol */
.highlight .sx { color: #2B2; background-color: #F0FFF0 } /* Literal.String.Other */
.highlight .sr { color: #080; background-color: #FFF0FF } /* Literal.String.Regex */
.highlight .s1 { color: #D20; background-color: #FFF0F0 } /* Literal.String.Single */
.highlight .ss { color: #A60; background-color: #FFF0F0 } /* Literal.String.Symbol */
.highlight .bp { color: #038 } /* Name.Builtin.Pseudo */
.highlight .fm { color: #06B; font-weight: bold } /* Name.Function.Magic */
.highlight .vc { color: #369 } /* Name.Variable.Class */
.highlight .vg { color: #D70 } /* Name.Variable.Global */
.highlight .vi { color: #33B } /* Name.Variable.Instance */
.highlight .vm { color: #369 } /* Name.Variable.Magic */
.highlight .il { color: #00D; font-weight: bold } /* Literal.Number.Integer.Long */</style><div class="highlight"><pre><span></span><span class="ch">#!/usr/bin/sh</span>

<span class="nv">major</span><span class="o">=</span><span class="s2">&quot;0&quot;</span>
<span class="nv">minor</span><span class="o">=</span><span class="s2">&quot;9.7b&quot;</span>

<span class="nv">slib</span><span class="o">=</span>libssl
<span class="nv">sh_slib</span><span class="o">=</span><span class="nv">$slib</span>.so.<span class="nv">$major</span>.<span class="nv">$minor</span>

<span class="nv">clib</span><span class="o">=</span>libcrypto
<span class="nv">sh_clib</span><span class="o">=</span><span class="nv">$clib</span>.so.<span class="nv">$major</span>.<span class="nv">$minor</span>

<span class="nv">FLAGS</span><span class="o">=</span><span class="s2">&quot;-O3 -DFILIO_H -fomit-frame-pointer -pthread&quot;</span>
<span class="nv">SHFLAGS</span><span class="o">=</span><span class="s2">&quot;-DPIC -fPIC&quot;</span>

touch<span class="w"> </span><span class="nv">$sh_clib</span>
touch<span class="w"> </span><span class="nv">$sh_slib</span>

<span class="nb">echo</span><span class="w"> </span>collecting<span class="w"> </span>all<span class="w"> </span>object<span class="w"> </span>files<span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="nv">$clib</span>.so
<span class="nv">OBJS</span><span class="o">=</span>
find<span class="w"> </span>.<span class="w"> </span>-name<span class="w"> </span><span class="se">\*</span>.o<span class="w"> </span>-print<span class="w"> </span>&gt;<span class="w"> </span>allobjs
<span class="k">for</span><span class="w"> </span>obj<span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="sb">`</span>ar<span class="w"> </span>t<span class="w"> </span>libcrypto.a<span class="sb">`</span>
<span class="k">do</span>
<span class="w">	</span><span class="nv">OBJS</span><span class="o">=</span><span class="s2">&quot;</span><span class="nv">$OBJS</span><span class="s2"> `grep </span><span class="nv">$obj</span><span class="s2"> allobjs`&quot;</span>
<span class="k">done</span>

<span class="nb">echo</span><span class="w"> </span>linking<span class="w"> </span><span class="nv">$clib</span>.so
gcc<span class="w"> </span>-G<span class="w"> </span>-o<span class="w"> </span><span class="nv">$sh_clib</span><span class="w"> </span>-h<span class="w"> </span><span class="nv">$sh_clib</span><span class="w"> </span><span class="nv">$OBJS</span><span class="w"> </span>-lnsl<span class="w"> </span>-lsocket

rm<span class="w"> </span>-f<span class="w"> </span><span class="nv">$clib</span>.so
ln<span class="w"> </span>-s<span class="w"> </span><span class="nv">$sh_clib</span><span class="w"> </span><span class="nv">$clib</span>.so

<span class="nb">echo</span><span class="w"> </span>collecting<span class="w"> </span>all<span class="w"> </span>object<span class="w"> </span>files<span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="nv">$slib</span>.so
<span class="nv">OBJS</span><span class="o">=</span>
<span class="k">for</span><span class="w"> </span>obj<span class="w"> </span><span class="k">in</span><span class="w"> </span><span class="sb">`</span>ar<span class="w"> </span>t<span class="w"> </span>libssl.a<span class="sb">`</span>
<span class="k">do</span>
<span class="w">	</span><span class="nv">OBJS</span><span class="o">=</span><span class="s2">&quot;</span><span class="nv">$OBJS</span><span class="s2"> `grep </span><span class="nv">$obj</span><span class="s2"> allobjs`&quot;</span>
<span class="k">done</span>

<span class="nb">echo</span><span class="w"> </span>linking<span class="w"> </span><span class="nv">$slib</span>.so
gcc<span class="w"> </span>-G<span class="w"> </span>-o<span class="w"> </span><span class="nv">$sh_slib</span><span class="w"> </span>-h<span class="w"> </span><span class="nv">$sh_slib</span><span class="w"> </span><span class="nv">$OBJS</span><span class="w"> </span>-L.<span class="w"> </span>-lcrypto

rm<span class="w"> </span>-f<span class="w"> </span><span class="nv">$slib</span>.so
ln<span class="w"> </span>-s<span class="w"> </span><span class="nv">$sh_slib</span><span class="w"> </span><span class="nv">$slib</span>.so

mv<span class="w"> </span>libRSAglue.a<span class="w"> </span>libRSAglue.a.orig
mv<span class="w"> </span>libcrypto.a<span class="w">  </span>libcrypto.a.orig
mv<span class="w"> </span>libssl.a<span class="w">     </span>libssl.a.orig
</pre></div>
</code></pre></td></tr></table>
</div> <!-- class=content -->
<div class='footer'>generated by <a href='https://git.zx2c4.com/cgit/about/'>cgit v1.2.3</a> (<a href='https://git-scm.com/'>git 2.25.1</a>) at 2025-06-21 11:33:03 +0000</div>
</div> <!-- id=cgit -->
</body>
</html>
